-
Using Expressions with an Image Sequence
Hi guys,
I’ve only just begun tangling with expressions after watching Andrew Kramer’s super (let’s face it they’re all super!) tutorial on Video Copilot (69. 3D Offset) in which he deals with using expressions to offset the timing of a single animation in duplicate identical compositions. I have a grounding in Actionscript for Flash which kind of gives me hope, although I’m already struggling with basic AE syntax and generally what is possible.
Here’s my problem/query. I want to effect something like Andrew shows in his tutorial, namely animating multiple instances of the same composition, and offsetting their animations by x amount of seconds etc. However, unlike in Andrew’s tutorial where the object/image inside the composition is the same, I am using a sequence of 33 images which all reside multiple instances of the same composition (MainComp).
To enable MainComp to display each different image within with multiple fuss, I set the MainComp’s FPS to 1FPS duplicated the layer it sits on 33 times, stuck a time remap on them and the simple expression time=index-1 (-1 to account for the image lying in MainComp between 0.00 and 1.00). It worked and I had a big grin on my face.Now I’m kind of in a quandary, because I also want to animate each instance of MainComp only once and set the offset of each using some of Andrew’s expression methods that he shows in the tutorial. However, I feel like I’ve had my ‘one shot’ by using a time remap/expression to display each image ‘dynamically’. I can’t animate inside MainComp, because the expression on each instanced layer in the parent comp will override it. I can’t animate outside the parent Comp of MainComp because my expression will then be ignored.
By explaining all this (and hopefully not confusing anyone who reads it) I’m leading up to the question: is it possible to have an expression within MainComp or within yet another child-composition of MainComp similar to time=index-1, but evoking the index (layer) number of the PARENT comp in which that instance of MainComp sits? Or even the parent of the parent. Something like time=parent.parent.index-1? Does that make sense, or have I convoluted the whole business?
Any help/tips or links to relevant tutorials are appreciated (I have checked for tuts btw, but couldn’t any)
Thanks in advance