Hi all! I'm a little bit new in expressions and I have a question. I'd like to do a stop motion animation using markers and expressions, but unfortunatly I can't understand how these things work togherer...
Il'll try to describe what I want to do:
1. Drag my video in my comp and put one marker in every frame I choose for my animation.
2. Enable Time Remapping and create an expression wich is going to show only the frames with markers
3. Add in the same expression a part that tells to the layer to display all the marked frames for a variable number.
Is it possible to do this?? It'll be good even if I could do this without markers, but adding keyframes in the time remap parameter.
Thank U guys!
Your's a great Forum!!
Stop Motion using markers and expressions
-
- Posts: 320
- Joined: June 26th, 2004, 10:01 am
- Location: Folsom, CA
- Contact:
This should do it:
Set "d" to the number of frames you want each marked frame to display.
Dan
Code: Select all
d = 2; // duration of each frame
n = marker.numKeys;
if (n > 0){
f = Math.min(Math.floor(timeToFrames(time)/d) + 1, n);
marker.key(f).time
}else{
value
}
Dan