AE ENHANCERS

Expressions/Scripts/Presets
It is currently Mon May 20, 2013 9:10 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Imitating a film projector with FPS control
PostPosted: Wed Oct 19, 2005 8:13 am 
Offline
Enhancement master
User avatar

Joined: Thu Jun 17, 2004 9:27 am
Posts: 456
Location: New York City, NY
Add the Distort->Offset plugin to a piece of footage and add this expression to the "Shift Center To" property. If you want a black line or film frame around the footage, pre-comp and do it there.

Code:
fps= 24;
t=time * fps;
move= t * thisComp.height;
reset=Math.floor(move/thisComp.height);
moveReset=move-reset*thisComp.height;

[thisProperty[0],thisProperty[1] + moveReset]


You can also add a slider to the fps property to animate it and simulate adjusting the framer on a projector. Add an Expression Controls->Slider Control Effect to the layer and change the expression of the "Shift Center To" property to this:

Code:
fps= effect("Slider Control")("Slider");
t=time * fps;
move= t * thisComp.height;
reset=Math.floor(move/thisComp.height);
moveReset=move-reset*thisComp.height;

[thisProperty[0],thisProperty[1] + moveReset]



Finally to add some flicker, add this expression to the Opacity:

Code:
wiggle (effect("Slider Control")("Slider"), 20)


thanks to goldomega for the reset part of the expression


Last edited by lloydalvarez on Wed Jan 11, 2006 11:21 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 11:23 am 
Offline

Joined: Fri Aug 12, 2005 8:54 am
Posts: 9
Location: Rochester, NH
Very neat expression, Lloyd.

To clarify for people who are seeing this expression for the first time, the 'reset' part of the code is to keep the value on "ShiftCenterTo" from becoming astronomically high. Effects in some versions of After Effects don't handle high numbers well.

As a suggestion, it might be useful to also apply a vertical Directional Blur with an expression that links the length of the blur with the speed of the offset effect.

Blur Length
multiplier=.0001;
effect("Offset")("Shift Center To")[1].speed*multiplier

Simply increase the multiplier or the speed of the offset to increase the blur.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 11:51 am 
Offline
Enhancement master
User avatar

Joined: Thu Jun 17, 2004 9:27 am
Posts: 456
Location: New York City, NY
great addition goldomega, since the Offset plugin does not motion blur!

Small correction to the expression, apparently .speed only pulls a 1 number array, so no need for the [1]:

Code:
multiplier=.0001;
effect("Offset")("Shift Center To").speed*multiplier


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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