Ojah
09-04-2009, 01:25 AM
Hi, after trying to figure this out for about 2 hours i thought its about time to ask it here :)
I'm working with a dynamic rollout (used a example i found here and altered it) and trying to
create a variable when a button is pressed. Now if the variable is an integer it works, but if i try to create it as a string the script errors.
this is what works:
format "\texecute (\"global objecttext_3=4\")\n" to:s
and this doesnt:
format "\texecute (\"global objecttext_3=\"stringtext\"\")\n" to:s
and this is the error:
>> MAXScript Rollout Handler Exception: -- Type error: Call needs function or class, got: "global objecttext_3=" <<
I hope someone can help me with this :)
I'm working with a dynamic rollout (used a example i found here and altered it) and trying to
create a variable when a button is pressed. Now if the variable is an integer it works, but if i try to create it as a string the script errors.
this is what works:
format "\texecute (\"global objecttext_3=4\")\n" to:s
and this doesnt:
format "\texecute (\"global objecttext_3=\"stringtext\"\")\n" to:s
and this is the error:
>> MAXScript Rollout Handler Exception: -- Type error: Call needs function or class, got: "global objecttext_3=" <<
I hope someone can help me with this :)
