Blender World
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Driver: Python Expression: Clock Escapement rotation.

2 posters

Go down

Driver: Python Expression: Clock Escapement rotation.  Empty Driver: Python Expression: Clock Escapement rotation.

Post  Spartanis 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....
Spartanis
Spartanis

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

Back to top Go down

Driver: Python Expression: Clock Escapement rotation.  Empty Re: Driver: Python Expression: Clock Escapement rotation.

Post  Scooter2 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 : 142
Join date : 2012-06-09

Back to top Go down

Driver: Python Expression: Clock Escapement rotation.  Empty Re: Driver: Python Expression: Clock Escapement rotation.

Post  Spartanis 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
Spartanis
Spartanis

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

Back to top Go down

Driver: Python Expression: Clock Escapement rotation.  Empty Re: Driver: Python Expression: Clock Escapement rotation.

Post  Spartanis Wed Jul 30, 2014 9:26 am

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

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

Back to top Go down

Driver: Python Expression: Clock Escapement rotation.  Empty Re: Driver: Python Expression: Clock Escapement rotation.

Post  Scooter2 Wed Jul 30, 2014 8:58 pm

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

Scooter2

Posts : 142
Join date : 2012-06-09

Back to top Go down

Driver: Python Expression: Clock Escapement rotation.  Empty Re: Driver: Python Expression: Clock Escapement rotation.

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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