Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Re: "Glitch" looping effect - Is this possible, can anyone help?

Cow Forums : Adobe After Effects Expressions
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: "Glitch" looping effect - Is this possible, can anyone help?
by Dan Ebberts on Jun 30, 2009 at 8:53:22 pm

Clearly a job for time remapping. It's hard to know what would be the best way to control this, but here's an idea. Drop this expression into the time remapping property. Wherever you want a glitch, put a layer marker with the frame number you want to skip to as the marker comment. A bunch of markers in a row (a few frames apart), each with the same frame number will cause a stutter, like in your example.

I'm sure there are better ways to automate it, but it's kind of fun to play around with.

n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
n--;
}
}
if (n == 0){
value
}else{
t = time - marker.key(n).time;
f0 = parseInt(marker.key(n).comment,10);
if (isNaN(f0)){
value
}else{
framesToTime(f0) + t
}
}


Dan



Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Please post Expressions Code in the box below:


Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]