SIGN IN
::
SPONSORS
::
ABOUT US
::
CONTACT US
FORUMS
TUTORIALS
MAGAZINE
TRAINING
VIDEOS - REELS
PODCASTS
EVENTS
SERVICES
NEWSLETTER
NEWS
BLOGS
ADOBE AFTER EFFECTS:
Home
Forum
Basics
Expressions
Tutorials
Podcasts
Motion Graphics
Training
Cinema 4D
FAQ
listing a neighbouring comps layers on a text layer
Cow Forums
:
Adobe After Effects Expressions
VIEW POSTS
•
ADD A NEW POST
•
SEARCH
•
CHANGE FORUM
Respond to this post
•
Return to posts index
•
Read entire thread
listing a neighbouring comps layers on a text layer
by
Peter O'Connell
on Aug 26, 2008 at 12:36:51 am
Hello expression enthusiasts. I am working on a text layer expression that gathers info about neighbouring layers. What I want to do is have the text layer list every layer of the comp that it is above (so that I don't have to open the comp to have a peak what's in it). The expression work fine as long as the text layer is directly above a comp, but if it is above any other kind of layer I get an error. So I am having trouble building the "If the layer is a comp then... else "The layer below this one is not a comp!"" business
Here is the code I have so far which works above a comp only.
//start
var compBelowName = comp((thisComp.layer(index+1)).name).name
var compBelow = comp((thisComp.layer(index+1)).name)
s = "";
i = 1;
while (true){
try{
s += comp(compBelowName).layer(i).name;
}catch (err){
break;
}
i++;
s += "r";
}
s
//end
Pete
roguekeyframe.com
Respond to this post
•
Return to posts index
•
Read entire thread
Current Message Thread:
listing a neighbouring comps layers on a text layer
by Peter O'Connell on Aug 26, 2008 at 12:36:51 am
Re: listing a neighbouring comps layers on a text layer
by Dan Ebberts on Aug 26, 2008 at 2:04:26 am
Re: listing a neighbouring comps layers on a text layer
by Peter O'Connell on Aug 26, 2008 at 2:57:14 am
Note:
If you are a registered user please
click here to login
before posting.
Your post will not be accepted if your name and email address are not registered in our database. Click
here
if you do not have an account.
Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message
Entire Thread
None
Message:
Note:
The following are HTML 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.
Read more...
Please post Expressions Code in the box below:
Add your message signature
Note:
By clicking "Post Direct" button above, you are agreeing to the Creative Cow's
Code of Conduct
.
FORUMS
•
TUTORIALS
•
MAGAZINE
•
TRAINING
•
VIDEOS - REELS
•
PODCASTS
•
EVENTS
•
SERVICES
•
NEWSLETTER
•
NEWS
•
BLOGS
©
CreativeCOW.net
All rights are reserved.
[
Top
]