  | | | Animation Tweener Formula | Animation Tweener Formula 2004-04-16 - By ctd142000
Back Ok, so with a lot of help from a co-worker of mine I was able to put together a little formula to simplify a lot of my animation work.
Here is the tweener formula:
Cycles=5; CycleDistance=5; RampStartPos=1.5; RampEndPos=3.5; Delay=0;
d=1-Delay/CycleDistance; rs=RampStartPos/CycleDistance; re=RampEndPos/CycleDistance;
u=(t-tmin)/(tmax-tmin)*Cycles; x=mod(u+d,1); v=(x-rs)/(re-rs); w=((v<0)?0:v); value=((w>1)?1:w);
To try it out simply insert an object like a sphere, move scrubber to 1 sec create key frame, move scrubber to 6 sec and move your sphere to a new location (try moving on one axis like Y 6"). A key frame is created, now select the tweener between those two keys and choose formula for the type of tweener.
If you copy and paste the above formula into the tweener formula window and select parse you should be able to see the graph representing the motion.
Parameters that you can adjust: Cycles (enter # of repeats) CycleDistance (specify the distance to moved) RampStartPos (enter a value to begin ramp) RampEndPos (enter a value to end ramp) Delay (enter a value to offset or delay..use 0 most of the time)
NOTE: The ramp start and end can be reversed. Also if you set the ramp start and ramp end to the min and max values respectively for the distance of travel you will get a basic saw tooth shape. If you moved your object in one axis to a specified distance like 6" you can precisely designate ramp start and ramp end times...also delay.
We are also looking at using data from actual servo motors and plugging that into a formula to replicate that motion in Carrara.
Todd
-- ---- ---- ---- ------ Yahoo! Groups Sponsor -- ---- ---- ---- ---~--> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511 http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/_iFolB/TM -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------~->
Special $30 OFF transposer until April 16, 2004.
http://www.eovia.com/offers/yahoo.jsp Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/Carrara/
<*> To unsubscribe from this group, send an email to: Carrara-unsubscribe@(protected)
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
|
 |