Question about "Execute"
i have a simple question, i am a little bit lost with maxscript, so, if you can help it will be so nice ;)
i think its probably really simple, my question is: Do you know an alternative to "execute" to do this stuff :
fn LogoPreset1 = ( print "logo1" ) fn LogoPreset2 = ( print "logo2" ) fn LogoPreset3 = ( print "logo3" ) rollout testrollout "test" width:272 height:120 ( dropdownlist dd items:#("hello","hello world","hello you") height:6 button addb "add logo" pos:[50,35] width:125 height:32 fn w = ( z = dd.selection as string execute("LogoPreset"+z+"()") ) on addb pressed do ( w() ) ) createDialog testrollout
Because of "execute" i have to put fn before the rollout, but doing that complicate some other part of my main script.
so its why i'm looking for an alternative
thank you for your help.