PDA

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


CerberusC
02-16-2009, 10: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

Cheers!

LoneRobot
02-16-2009, 11:02 AM
how about


on <rollout> open do <exp>

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

CerberusC
02-16-2009, 01: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.

THANKS! :D

CGTalk Moderation
02-16-2009, 01: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.