Maxscript: How to Continue with another maxscript from Plugin/SimpleObject

Maxscript: How to Continue with another maxscript from Plugin/SimpleObject

Anonymous
Not applicable
502 Views
0 Replies
Message 1 of 1

Maxscript: How to Continue with another maxscript from Plugin/SimpleObject

Anonymous
Not applicable

I've created a Simpleobject that mimics the grid helper with maxops.autogrid . After this tool has run i wan't to continue with secondary maxscripts. Where/how do i best go about this in the SimpleObject?.

In the example below i do run.macro after #stop ,but it's not exiting the simpleobject-tool, altough it runs the secondary maxscript.

I tried using on stop do ... but get no response, so maybe i just need guidance to where to put it... if this is what i should be using.

Thanks in advance!

 

MacroScript TestScript
category:"TestScripts"
(
print "test"
)



plugin simpleObject NewGrid name:"MyGrid" classID:#(0x2359f7bb, 0x166fafb8) category:"MyNewFancyGrid" ( parameters main rollout:params ( length type:#float default:0 ui:Glength width type:#float default:0 ui:Gwidth ) rollout params "grid Parameters" ( spinner Glength "length "range:[0,10000,0] spinner Gwidth "width "range:[0,10000,0] ) on buildmesh do ( NewPlane = createInstance plane length:length lengthsegs:1 widthsegs:1\ width:width mesh = NewPlane.mesh ) tool create ( on mousePoint click do ( case click of ( 1: nodeTM.translation = gridPoint 2: (#stop; macros.run "TestScripts" "TestScript" ) --1: coordsys grid (nodeTM.translation = gridPoint) ) ) on mouseMove click do ( case click of ( 2: (width = abs gridDist.x*2; length = abs gridDist.y*2) ) ) ) )--end plugin
0 Likes
503 Views
0 Replies
Replies (0)