All,
I am trying to implement programmatically controlled rotation of a
cube. I have an Interpolation patch with two inputs, the start and
stop values, with the interp. patch's output going in to a 2 input
multiplexer. The other input to the multiplexer is set to the stop
value of the rotation, e.g. if I want the cube to rotate 90 degrees
and stop, I set the 2nd multiplexed input to 180, and toggle the
selector to 1 when the start and stop angles are equal within a
tolerance.
This is where my problem lies. The value of the interpolation is
changing at a good clip, (a duration of 3). I have a timer that fires
every 0.1 seconds to check if stop-start <= 1.0; however, because the
timer is mutually exclusive from the interpolation, its a hit or miss
situation.
I have tried vaious boolean logic patches, but I run into the problem
of my inputs/outputs cannot be looped back into the interpolation
patch.
Another idea I had was to set the "Repeat Mode" of the interpolation
patch to "None"; however, it seems once the interpolation's value
equals the stop value, you can't "restart" the interpolation, e.g.
going from start/stop values of 90/180 to 180/270, and the rotation
starting again.
Any ideas?
Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden
This email sent to email@hidden