SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Mel Scripts & Programming / Expression Timing?
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 26-09-2006, 06:56 AM   #1
sterlma
Subscriber
 
Join Date: Sep 2006
Location: LA, Ca
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Expression Timing?

Hi all! I'm new around here, but love this site. I sort of stumble on it by accident, but I VERY happy I did. Anyway, here's my question.

Can anyone tell me if there is a way to instruct a runtime expression to begin firing only at a certain frame.

my expression is basically this:

light.blink = ((frame/16) % 2)

I want this expression to start at frame 100. How do I express that?

edit:

Sorry, Xander, I guess "frame" can be used as you described. I just must have had the syntax wrong before. :lol: now I no two ways to get the current frame. :lol:

Last edited by sterlma : 27-09-2006 at 07:40 AM.
sterlma is offline   Reply With Quote
Old 26-09-2006, 07:48 PM   #2
Xander-0
Registered User
 
Xander-0's Avatar
 
Join Date: Feb 2005
Location: This Place
Posts: 220
Thanks: 0
Thanked 2 Times in 1 Post
Default

if/then statements

if (frame > 100){

light.blink = ((frame/16) % 2);

}

I think that should do it.
__________________
Book Wise

http://X4nd5r.deviantart.com
Xander-0 is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.