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
Re: Can an expression acknowledge the Comp's name?
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
Re: Can an expression acknowledge the Comp's name?
by
Lloyd Alvarez
on Nov 14, 2008 at 5:49:07 am
forgot that it needed to be used as a number:
c=thisComp.name
parseInt(c.charAt(c.lastIndexOf("_")-1),10)
BTW, just recently learned about the various flavors of parseInt so if you are following along at home, make sure to add the ,10 whenever you use parseInt to make sure you pull base 10 numbers which I imagine is what you'll want 99% of the time..
-Lloyd
http://aescripts.com
Respond to this post
•
Return to posts index
•
Read entire thread
Current Message Thread:
Can an expression acknowledge the Comp's name?
by Bert Brown on Nov 13, 2008 at 5:22:58 pm
Re: Can an expression acknowledge the Comp's name?
by Darby Edelen on Nov 13, 2008 at 5:46:25 pm
Re: Can an expression acknowledge the Comp's name?
by Bert Brown on Nov 13, 2008 at 6:12:26 pm
Re: Can an expression acknowledge the Comp's name?
by Dan Ebberts on Nov 13, 2008 at 6:16:37 pm
Re: Can an expression acknowledge the Comp's name?
by Lloyd Alvarez on Nov 14, 2008 at 5:39:44 am
Re: Can an expression acknowledge the Comp's name?
by Lloyd Alvarez on Nov 14, 2008 at 5:49:07 am
Re: Can an expression acknowledge the Comp's name?
by Darby Edelen on Nov 16, 2008 at 11:53:25 pm
Re: Can an expression acknowledge the Comp's name?
by Dan Ebberts on Nov 17, 2008 at 7:14:27 pm
Re: Can an expression acknowledge the Comp's name?
by Lloyd Alvarez on Nov 21, 2008 at 7:47:53 pm
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
]