SIGN IN & SETTINGS
::
SPONSORS
::
ABOUT US
::
CONTACT US
FORUMS
LIBRARY
PODCASTS
BLOGS
MAGAZINE
SERVICES
NEWSLETTERS
NEWS
STORE
EVENTS
ADOBE AFTER EFFECTS:
Forum
AE Basics
AE Expressions
Tutorials
Articles
Podcasts
Motion Graphics
Training
Cinema 4D
Re: "index" equivalent for parent comps?
Cow Forums
:
Adobe After Effects Expressions
VIEW POSTS
•
ADD A NEW POST
•
SEARCH
•
CHANGE FORUM
Return to Posts Index
•
Read Entire Thread
•
Reply To This Post
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:
myScene = thisComp.name.split(" ")[thisComp.name.split.length-1];
myParentComp = comp("Scene " + myScene);
That way, at least you shouldn't have to go in and edit all the comp names in the expressions, because they would be constructed on the fly.
Dan
Return to Posts Index
•
Read Entire Thread
•
Reply To This Post
Current Message Thread:
"index" equivalent for parent comps?
by Bert Brown on May 8, 2008 at 9:08:38 pm
Re: "index" equivalent for parent comps?
by Dan Ebberts on May 8, 2008 at 9:44:41 pm
Re: "index" equivalent for parent comps?
by bert Brown on May 8, 2008 at 10:11:25 pm
Note:
If you are a registered user and you
do not
see your name and email in the two respective fields above, you may reset your account cookies by clicking
here
. Your post
will not be accepted
if the name and email provided above are not currently registered in our database.
Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message
Entire Thread
None
Message
Note:
The following characters are HTML command 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. For more on how to post,
click here
.
Add your message signature
Note:
By clicking "Post Direct" button above, you are agreeing to the Creative Cow's
Code of Conduct
.
FORUMS
•
LIBRARY
•
PODCASTS
•
BLOGS
•
MAGAZINE
•
SERVICES
•
NEWSLETTERS
•
NEWS
•
STORE
•
EVENTS
©
CreativeCOW.net
All rights are reserved.
[
Top
]