Notifications
Clear all

[Closed] cumulative values inside Rotations ?

hey guys,

i want to rotate a ‘crank’ in +Y_axis and feed another object´s rotation Y_axis as incremental value, only applying when it´s positive…
but i´m stuck…so far i´m using two values (Y_rot that feeds the ‘crank’, Y_pos that feeds the rolling cylinder) but it´s kinda boring to animate and it isn´t a elegant solution though…

reference idea:
Spring-powered or “clockwork” car models, that are wound with a key or by a friction mechanism.

i´ve attached my scene test file (.max 2009).

thanks in advance,
cheers.

5 Replies

i mean, do you know that tool ?

that´s the motion i´m trying,
with one positive ‘clockwise’ rotation you feed another object, returning negative affects nothing…

any thoughts ?

 JHN

Hi Renato,

Maybe a Custom Attribute function that only feeds a float value param when a value added is positive, then wire to that param.

Cheers,
-Johan

 JHN

And a max2010 sample file, note of the various problems to this approach, I had to add a with animate off context to the script controller, otherwise it would bake the CA param.

So that makes this a “realtime” controller, and it should be “baked” if you need consistent animation.

The code for the CA:


 ca = attributes addCA
 (
 	parameters params
 	(
 		theAngle type:#float default:0
 	)
 )
 
 custAttributes.add $.rotation.controller.z_rotation.controller ca
 

Then check the script controller on the spline. There are probably better solutions, but this seems to work too

Hope it helps,
-Johan

that´s it, thanks a bunch JOHAN, i liked your solution !!
seeya.

 JHN

Excellent

-Johan