Driver: Python Expression: Clock Escapement rotation.
2 posters
Page 1 of 1
Driver: Python Expression: Clock Escapement rotation.
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....
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....
Spartanis- Posts : 28
Join date : 2014-07-04
Age : 49
Location : Perth, Western Australia
Re: Driver: Python Expression: Clock Escapement rotation.
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
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 : 142
Join date : 2012-06-09
Re: Driver: Python Expression: Clock Escapement rotation.
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
THis allows me control over everything correctly...
Imagine a thousand gears, escapements and what not.. Try set up key framing for each one.. lolz
Spartanis- Posts : 28
Join date : 2014-07-04
Age : 49
Location : Perth, Western Australia
Re: Driver: Python Expression: Clock Escapement rotation.
[You must be registered and logged in to see this image.]
Spartanis- Posts : 28
Join date : 2014-07-04
Age : 49
Location : Perth, Western Australia
Re: Driver: Python Expression: Clock Escapement rotation.
Good evening,
I see your point. Sorry I cant help with scripting.
Good luck,
Scooter
I see your point. Sorry I cant help with scripting.
Good luck,
Scooter
Scooter2- Posts : 142
Join date : 2012-06-09
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|