Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
User avatar
lloydalvarez
Enhancement master
Topic Author
Posts: 460
Joined: Thu Jun 17, 2004 9:27 am
Location: New York City, NY
Contact:

cel animation style hold frame animation

Thu Jun 01, 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.

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: Sat Jun 05, 2004 7:59 am
Location: London, UK

Fri Jun 02, 2006 9:02 am

You can also use posterizeTime()

animateon=4;   //as in animate on 2's or 4's 
framerate=(1/thisComp.frameDuration)/animateon;
posterizeTime(framerate);
value;
 
dwahlrab
Posts: 9
Joined: Wed Jul 11, 2007 7:08 am
Location: brooklyn, ny

animate on 2's for roto

Fri Aug 31, 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
Topic Author
Posts: 460
Joined: Thu Jun 17, 2004 9:27 am
Location: New York City, NY
Contact:

Fri Aug 31, 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: Wed Jul 11, 2007 7:08 am
Location: brooklyn, ny

fixt'

Fri Aug 31, 2007 11:08 am

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

Re: cel animation style hold frame animation

Sat Sep 07, 2013 11:18 pm

Thanks for the expression

Who is online

Users browsing this forum: No registered users and 1 guest