cel animation style hold frame animation

Moderators: Disciple, zlovatt

Post Reply
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

June 1st, 2006, 3:49 pm

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)
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

June 2nd, 2006, 9:02 am

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;
dwahlrab
Posts: 9
Joined: July 11th, 2007, 7:08 am
Location: brooklyn, ny

August 31st, 2007, 10:39 am

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!
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

August 31st, 2007, 10:47 am

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
dwahlrab
Posts: 9
Joined: July 11th, 2007, 7:08 am
Location: brooklyn, ny

August 31st, 2007, 11:08 am

thats perfect. thank you for the agile thinking.
cris
Posts: 2
Joined: January 30th, 2009, 6:01 pm

September 7th, 2013, 11:18 pm

Thanks for the expression
Post Reply