Re: "index" equivalent for parent comps? by Dan Ebberts on May 8, 2008 at 9:44:41 pm
An expression can't determine the parent comp of the comp the expression resides in. The reason has to do with the fact that a sub comp can be used in many "parent comps" and since the same instance of the sub comp is used in each parent comp, its behavior can't be different depending on attributes of the parent comp.
An expression can, however, access any comp by name. So I think the best you can do is duplicate your character comp and give it a name with a suffix that will match the suffix of the corresponding scene comp. For example, the expressions in character comp "Mickey 2" would be smart enough to look for parent comp "Scene 2".
Then your expressions would start out with something like this:
Re: "index" equivalent for parent comps? by bert Brown on May 8, 2008 at 10:11:25 pm
cool, thanks dan. i'll give this a try tomorrow and see if i can figure it all out. might have a follow up question, but i did not know about this so i will experiment.
----------------------------------
peep my over-the-interweb band, red abbott.
"we electro-rock over long distances..."