PDA

View Full Version : Solved: Determine Effect's timeline/sequence?



Cosmo
07-18-2012, 07:43 AM
Is there any way to determine if an effect is part of the Timeline's MainSequence or InteractiveSequence? I'm trying to duplicate an effect, and I need to determine which sequence to which I need to add the effect.

I don't see any 'Type' property of the timeline or sequence objects, or any ID or any other property that I can use compare. The 'Parent' property of the effect is 'Sequence' whether it comes from the MainSequence or the InteractiveSequence, so I can't use that to determine the proper sequence. I could set a flag at a point further up the code, and pass it down through the chain of functions to get to the duplication function, but I would prefer that function to be more self-sufficient and be able to determine itself where to place the effect if possible.

Cosmo
07-18-2012, 08:33 AM
I Figured it out. The parent of the Parent of the effect will be different depending on whether it comes from the Main or Interactive. (Main will be 'Timeline'; Interactive will be 'Sequences')