AE ENHANCERS

Expressions/Scripts/Presets
It is currently Sun May 19, 2013 10:30 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Every nth frame
PostPosted: Wed Jan 21, 2009 7:34 am 
Offline

Joined: Wed Jan 21, 2009 6:32 am
Posts: 2
hi guys,

in after effects there is no way to import a picture sequence and say take only every nth frame.

so my question is when i have a CG rendering done in 25fps and i want only take every nth frame in my 25fps comp so is it possible to do this over a expresssion in the time remapping layer?

i want to have a stop motion look. so no smooth animation. i need the jumps over the same time. i hope u understand me what i need.thx!

ciao,
Jens

Jens Hedrich
CEO - Supervisor
http://www.3deutig.com


Top
 Profile  
 
 Post subject: Re: Every nth frame
PostPosted: Wed Jan 21, 2009 8:26 am 
Offline
Enhancement master
User avatar

Joined: Thu Jun 17, 2004 9:27 am
Posts: 456
Location: New York City, NY
This should do what you want, add it as an expression to Time Remap.

Code:
nthFrame = 3; 

fps = (1.0/thisComp.frameDuration) /  nthFrame;
posterizeTime (fps);
value

_________________
http://aescripts.com


Top
 Profile  
 
 Post subject: Re: Every nth frame
PostPosted: Wed Jan 21, 2009 8:34 am 
Offline

Joined: Wed Jan 21, 2009 6:32 am
Posts: 2
wow that was a fast answer!

thx!
it works very well!

cu,
Jens


Top
 Profile  
 
 Post subject: Re: Every nth frame
PostPosted: Sat Sep 26, 2009 1:10 pm 
Offline

Joined: Sat Apr 11, 2009 8:47 am
Posts: 12
Hi,

I'd like to know if there's a way to modify this expression to show ranges of frames.

e.g.: show the first 5 frames, then don't show the next 5 frames, show the next 5 frames, ....

Kind of "show n frames every nth frames".

Cheers,

stefman


Top
 Profile  
 
 Post subject: Re: Every nth frame
PostPosted: Sat Sep 26, 2009 1:18 pm 
Offline
Enhancement master
User avatar

Joined: Thu Jun 17, 2004 9:27 am
Posts: 456
Location: New York City, NY
Hi Stefan,

What do you mean by "show". You want the opacity to go to zero or do you want to compress the sequence by removing the frames.

-Lloyd

_________________
http://aescripts.com


Top
 Profile  
 
 Post subject: Re: Every nth frame
PostPosted: Sat Sep 26, 2009 1:45 pm 
Offline

Joined: Sat Apr 11, 2009 8:47 am
Posts: 12
Hi Lloyd,

I'd like to remove frames.

That means that I'd like to exclude a series of n frames every nth frame.

If e.g. I excluded 2 frames every third frame, in the remapped result AE would play only these frames:

1,2, (excluded) ,5,6, (excluded) 9,10,....

Stef


Top
 Profile  
 
 Post subject: Re: Every nth frame
PostPosted: Sat Sep 26, 2009 8:19 pm 
Offline

Joined: Sat Jun 26, 2004 10:01 am
Posts: 297
Location: Folsom, CA
I think it would look like this:

n = 5;
f = timeToFrames();
framesToTime(Math.floor(f/n)*2*n + f%n)


Dan

_________________
http://www.motionscript.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group