Page 1 of 1

cel animation style hold frame animation

Posted: June 1st, 2006, 3:49 pm
by lloydalvarez
if you want a property to animate on 2's or 4's like they do in cel animation. Set some keyframes and apply this expression. It should work on any property.

Code: Select all

animateon=2;   //as in animate on 2's or 4's
framerate=(1/thisComp.frameDuration)/animateon;
valueAtTime((Math.round(time*framerate))/framerate)

Posted: June 2nd, 2006, 9:02 am
by Paul Tuersley
You can also use posterizeTime()

Code: Select all

animateon=4;   //as in animate on 2's or 4's 
framerate=(1/thisComp.frameDuration)/animateon; 
posterizeTime(framerate);
value;

animate on 2's for roto

Posted: August 31st, 2007, 10:39 am
by dwahlrab
This is a great script... any advice on how I can apply this to the shape property of a roto mask? I'm doing a stop motion, and rig removal on twos is very cumbersome.
thanks!

Posted: August 31st, 2007, 10:47 am
by lloydalvarez
No script necessary. Change the frame rate of your comp to half your current fps. If you nest this comp in another comp, make sure you check the "preserve frame rate in nested comps" option in the Comp Settings.

-Lloyd

fixt'

Posted: August 31st, 2007, 11:08 am
by dwahlrab
thats perfect. thank you for the agile thinking.

Re: cel animation style hold frame animation

Posted: September 7th, 2013, 11:18 pm
by cris
Thanks for the expression