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
random expression executed once
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
random expression executed once
by
Peter Hriso
on Nov 5, 2009 at 4:06:34 am
I have the following expression on a text source:
var myArray = ["beans","rice","tacos","bbq"];
var i = Math.floor(random(myArray.length));
myArray[i]
I need a expression to execute one time and not every frame when the playhead plays through the comp. How can I run an expression to execute only at the beginning of a timeline and not on every frame? I don't see any triggers/events for detecting the first run of the timeline, for example an onEnterFrame handler function that actionscript utilizes.
thnx in advance
var myArray = ["beans","rice","tacos","bbq"];
var i = Math.floor(random(myArray.length));
myArray[i]
Respond to this post
•
Return to posts index
•
Read entire thread
Current Message Thread:
random expression executed once
by Peter Hriso on Nov 5, 2009 at 4:06:34 am
Re: random expression executed once
by Xinlai Ni on Nov 5, 2009 at 5:15:15 am
Re: random expression executed once
by Peter Hriso on Nov 5, 2009 at 1:59:55 pm
Re: random expression executed once
by Dan Ebberts on Nov 5, 2009 at 2:47:27 pm
Re: random expression executed once
by Peter Hriso on Nov 5, 2009 at 2:51:56 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
]