View Full Version : QUESTION - How to execute and expression at startup

02 February 2009, 11:14 AM
How can i execute and expression that is changing the state of some buttons inside of my script?

It's like this:

I'm loading my script, and inside it i have one checkbutton, at the start of the script i check if that is one file, i want the checkbutton state to be ON if the file exist or if it's width it's equal to 2x2, but in any other case i want the checkbutton state to be OFF.

Som help please, i was looking for some funtions like "ON (rollout) LOAD DO (EXP) but i cannot find anything like that :p


02 February 2009, 12:02 PM
how about

on <rollout> open do <exp>

help topic - Utility and Rollout Properties, Methods, and Event Handlers

02 February 2009, 02:56 PM
Yep, i found it before i saw your post...but i don't know why it was not working yesterday night, i think that instead of making a floating rollout i was making a dialog, i'm not sure if it's some difference.


CGTalk Moderation
02 February 2009, 02:56 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.