ScriptSpot

Script

Streincorp Pistons

By lucpet59 · Credited author: Luke Pettit · 2010-12-13

Version
v 1.6
Date updated
2011-12-01
Votes
19
Description

A script that recreates the tutorial from Dario Strano.

 

 

Additional Info

Updated to v 1.6 Fixed up the piston order in both the flat planes and cross plane I accidentally broke in the previous update Updated v1.5 Added new features based on the second video on the series Added ini file to save settings It can make v angles either pre-set or user defined. It can set either Two stroke or Four stroke engines. You can't go from either of the flat or cross planes to 90 degrees, 45 or any of the others you must go to Off first. At this point you'll have to wire the offset lines as per the second video yourself I'm still working on scripting this.
Videos
Attachments

Tags: Animation, Pistons

Comments (7)

Michele71 · 2010-12-28

Good!! Very nice script!! :) Thanks!!!!

22-12-10

lucpet59 · 2010-12-22

Ok I've solved the v8 flatplane and crossplane part of the script.
Any and all constructive crits and suggestions welcome. Just remember I'm still a scripting noob. ;)

Thank you to everyone who has helped weather you know it or not, and have a happy Christmas and new year, or what ever it is you celebrate at this time of year.

Luke

Thanks Anubis and Kilad

lucpet59 · 2010-12-15

(Hangs his head in shame)

If it were any more obvious........

speed = (my_brain + paint_drying) :)

I'm so slow it takes me two hours to watch 60 minutes

Put destroyDialog before rollout def

Anubis · 2010-12-14

Put

destroyDialog

before the rollout definition (this is important).

Adding

destroyDialog

after rollout def do nothing
'cause the new def overwrite old one and
the command lose connection to the previous rollout.

Cheers

Cheers

Anubis · 2010-12-13

Hey Luke, you did it :) nice work!

lucpet59 · 2010-12-14

haha Thanks, I seems to want to make everything more complicated than it needs to be and over think everything. :)

I have to work out why my bit of code
"if pistonRollout != undefined do destroyDialog pistonRollout"
doesn't work now

kilad · 2010-12-14

just use try(destroydialog pistonRollout)catch()