Driver: Python Expression: Clock Escapement rotation.

View previous topic View next topic Go down

Driver: Python Expression: Clock Escapement rotation.

Post  Spartanis on Tue Jul 29, 2014 11:05 am

3 days now.. three whole days i been at it.. after wot? one day of modelling and materials and basic driver set up for all cogs and gears, and shafts, and stoof. But the escapement part eludes me.

there's nothing in Google-space.. nor the brilliant Wolfram site, that helped me with figuring out a python expression for the driver. Close I could get is this:



r2+0.0037 if r1<=0.001 else r2-0.00185 if r1>=-0.001 else r2-0.00185

where r2 is the escapement wheel's x rotational angle. r1 is the x rotational angle of the escape (sine rotation). Numbers is in radians.

I was wondering if anyone here, or knows anyone in the blender world/python world outside this forum, that could help point me to the right direction?

Not only I got to figure out this escapement driver, but also for ratchet driver. Once i got this perfect.. I can then move onto the next phase... camera/lightning animation. Before i could render the lot into a shortclip....
avatar
Spartanis

Posts : 28
Join date : 2014-07-04
Age : 43
Location : Perth, Western Australia

View user profile

Back to top Go down

Re: Driver: Python Expression: Clock Escapement rotation.

Post  Scooter2 on Tue Jul 29, 2014 10:59 pm

Good evening,
Would you be interested in setting up keyframes that do what you want and just have them repeat, or are you set on using python expression?
Good luck.
Scooter

Scooter2

Posts : 133
Join date : 2012-06-09

View user profile

Back to top Go down

Re: Driver: Python Expression: Clock Escapement rotation.

Post  Spartanis on Wed Jul 30, 2014 5:42 am

keyframes is one thing.. but i rather leave the keyframing to the one OBJECT (invisible to rendering), which in truns drives all the other mechanism.

THis allows me control over everything correctly...

Imagine a thousand gears, escapements and what not.. Try set up key framing for each one.. lolz
avatar
Spartanis

Posts : 28
Join date : 2014-07-04
Age : 43
Location : Perth, Western Australia

View user profile

Back to top Go down

Re: Driver: Python Expression: Clock Escapement rotation.

Post  Spartanis on Wed Jul 30, 2014 9:26 am

[You must be registered and logged in to see this image.]
avatar
Spartanis

Posts : 28
Join date : 2014-07-04
Age : 43
Location : Perth, Western Australia

View user profile

Back to top Go down

Re: Driver: Python Expression: Clock Escapement rotation.

Post  Scooter2 on Wed Jul 30, 2014 8:58 pm

Good evening,
I see your point. Sorry I cant help with scripting.
Good luck,
Scooter

Scooter2

Posts : 133
Join date : 2012-06-09

View user profile

Back to top Go down

Re: Driver: Python Expression: Clock Escapement rotation.

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum