ZeBoxx2
05-19-2009, 05:31 PM
Yeah, crappy title, but can only fit so much and figured I'd drop keywords in there.
To the point, then.
plugin simpleObject myTest classID:#(0x6d21bd57, 0x30c14d86) (
rollout roll_test "test" (
pickbutton pickObj
)
parameters main rollout:roll_test (
testVal type:#node subAnim:true ui:pickObj
on testVal set val do (
local myUI = this.roll_test
)
)
tool create (
on mousePoint click do (
case click of (
1: (nodeTM.translation = gridPoint; #stop)
)
)
) -- end create tool
) -- end plugin definition
-- let's create a setup
(
test = myTest()
test.testVal = sphere()
)
The code above crashes with a ** system exception ** and then a soft crash in 3ds Max 2010, while it seems to work fine in 3ds Max 2009.
If I remove the red part, it no longer crashes, but I've lost the UI hook-up.
If I remove the green part, it no longer crashes, but then that means I simply cannot access elements in the UI.
If I remove the blue parentheses, things also no longer crash. However, I'd rather not have to invoke my 'doDelayed()' function. ( on the up side, I can. )
Setting a local variable in 'on postCreate' and checking for that variable before trying to access the UI didn't work, so I've left that code out of the above example.
Any and all thoughts as to the proper way to do this are welcome.
And yes, I should report this as a bug. However, I'm still stuck on the infamous Swindon junction with the support channels on a 3ds Max 2010 Trial startup crasher, trying to explain I'm having no difficulty whatsoever downloading the trial, but rather in -running- the thing. I'm nonplussed. /vent
To the point, then.
plugin simpleObject myTest classID:#(0x6d21bd57, 0x30c14d86) (
rollout roll_test "test" (
pickbutton pickObj
)
parameters main rollout:roll_test (
testVal type:#node subAnim:true ui:pickObj
on testVal set val do (
local myUI = this.roll_test
)
)
tool create (
on mousePoint click do (
case click of (
1: (nodeTM.translation = gridPoint; #stop)
)
)
) -- end create tool
) -- end plugin definition
-- let's create a setup
(
test = myTest()
test.testVal = sphere()
)
The code above crashes with a ** system exception ** and then a soft crash in 3ds Max 2010, while it seems to work fine in 3ds Max 2009.
If I remove the red part, it no longer crashes, but I've lost the UI hook-up.
If I remove the green part, it no longer crashes, but then that means I simply cannot access elements in the UI.
If I remove the blue parentheses, things also no longer crash. However, I'd rather not have to invoke my 'doDelayed()' function. ( on the up side, I can. )
Setting a local variable in 'on postCreate' and checking for that variable before trying to access the UI didn't work, so I've left that code out of the above example.
Any and all thoughts as to the proper way to do this are welcome.
And yes, I should report this as a bug. However, I'm still stuck on the infamous Swindon junction with the support channels on a 3ds Max 2010 Trial startup crasher, trying to explain I'm having no difficulty whatsoever downloading the trial, but rather in -running- the thing. I'm nonplussed. /vent
