Question about "Execute"
Hello,
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.
Comments
.
Glad to help. :)
Tools and Scripts for Autodesk 3dsMax
.
Is this is what you want?
If this is not, give us an example of what have to be printed in the edittext boxes when you change the ddl selection.
Don't use so many global variables when you can use local variables.
Tools and Scripts for Autodesk 3dsMax
omg! yes! I making so many
omg!
yes!
I making so many mistake! thanks for advice
I think it's exactly what i needed!
Just the time to understand how it work and I'll include it in my script.. it will be probably ok
many thanks for your disponibility.
more code : totally
more code :
totally approximative but ...
...
Workaround
Use one function for the all ei.
bga
Thank you for the answer that
Thank you for the answer that was fast! ;)
it work, but in fact i want to make a more complicated fn than just format or print some thing.
Thank you very much for the lead, i am working on it..
i will be back soon ;)
...
I know that you have more comlicated question ;)
Post what you have to see the problem.
bga
so... Another one example of
so...
Another one example of what i want to do.. really sorry for my first question i didn't know how to explain my goal, ihope this one is more accurate.
i think it' probably really easy to do... but i'am stucked
more code : totally
more code :
totally approximative but ...
...
First of all you not need to use globals in this case also you convert string to string and array to array. Look et this example
bga