PDA

View Full Version : Simple X rotation over time


ivanGQ
02-16-2006, 03:37 PM
Hi, I know it's very basic, but I am not good at this technical stuff, so I hope some one finds the time to reply, anyway:



I have a air conditioning fan in my scene, and as it going to be used in about 10 shots throughout the short, I want the fan to have a script controller (or anything else) on the x axis and to rotate linearly over the animation. The main reason for this is that I will most probably forget to animate it, and will stop in the middle of a shot...not good!



I have tried something like this (havenít got max in front so cant copy paste):



rot = $fan.rotation

rot.x + 5



this is not good I think, so if some one can give us an rough idea where to look at and such, it would be much appreciated...



cheers...

galagast
02-16-2006, 03:58 PM
A non-script related answer might be is to use the Out-of-Range curves on trackview. You'll just have to key you're animation say from 0 to 10, then open trackview, go down to your objects' rotation x axis and click to select it, then go to the "Controller" menu, look for "Out-of-Range Types..." and choose a type, for you case you should pick the loop. You could then adjust the speed just by moving your last rotation key to a different time.
And for a script controller method... assign a script controller to your x rotation in trackview and type "(currentTime/160)*10" inside... you could then adjust the rate of spin by changing the value of the multiplier "10" to any number you want.. (It would also be advisable to use a List controller first befre applying a script controller, a lot like layering for easier adjustments)

I hope this helps!

ivanGQ
02-18-2006, 02:52 PM
Cheers mate, it's working great, thanks alot.

The beers on me :)

CGTalk Moderation
02-18-2006, 02:52 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.