Forums > Jitter

question about jit.anim.drive – generic parameter possible?

January 4, 2012 | 5:37 pm

hi -

I’m using jit.anim.drive with the moveto and rotateto messages to animate a jit.gl.camera & some jit.gl.lights, and I’d like to coordinate various parameters that aren’t part of the object transform – for instance, the lens_angle of the camera and the spot_angle of the light.

I can handle this myself (for instance by triggering a line object when I start the moveto) but then I don’t get all the nice easein & easeout curves – and while I can recreate these manually, it’s a lot of work.

Couldn’t jit.anim.drive (and jit.anim.path) have an attribute that would tell it to dump out a generic 0. to 1. parameter as it progresses through the current animation that could then be used to drive an arbitrary variable?

It would be essentially the opposite of jit.anim.path’s eval message – instead of feeding the object a 0. to 1. message, the object reports its progress from 0. to 1.


January 4, 2012 | 5:56 pm

request noted.
thanks!


July 24, 2013 | 11:27 am

This sounds nice!


July 24, 2013 | 12:20 pm

this has been implemented.
check out the following example patch:
Max 6.1/examples/jitter-examples/render/anim/anim.evalnotify.maxpat


Viewing 4 posts - 1 through 4 (of 4 total)