cganimator
02-24-2006, 08:21 PM
Hi
I,m trying to make "Detach every poly to element" using Edit Poly Modifier
-----------------------------------------
macroscript DetachAllPolygonAsElements category:"My"
(
on isEnabled return
(
selection.count == 1 and classof (modPanel.getCurrentObject()) == Edit_Poly) and subObjectLevel == 4
)
on execute do
(
theObject = modPanel.getCurrentObject()
thePolys = (theObject.GetSelection #Face node:selection[1]) as array
PolyNumber = thePolys.count
for p = 1 to PolyNumber do
theObject.detachFaces obj #{p}
)
)
-----------------------------------------
This is my script, but it keep causing "Runtime error: No such handler: #execute". I can not figure out what is wrong.
Please sombody help me.
I,m trying to make "Detach every poly to element" using Edit Poly Modifier
-----------------------------------------
macroscript DetachAllPolygonAsElements category:"My"
(
on isEnabled return
(
selection.count == 1 and classof (modPanel.getCurrentObject()) == Edit_Poly) and subObjectLevel == 4
)
on execute do
(
theObject = modPanel.getCurrentObject()
thePolys = (theObject.GetSelection #Face node:selection[1]) as array
PolyNumber = thePolys.count
for p = 1 to PolyNumber do
theObject.detachFaces obj #{p}
)
)
-----------------------------------------
This is my script, but it keep causing "Runtime error: No such handler: #execute". I can not figure out what is wrong.
Please sombody help me.
