AEI script
Test - Printable Version

+- AEI script (http://www.aei.pub)
+-- Forum: Official || 官方讨论区 (http://www.aei.pub/forumdisplay.php?fid=1)
+--- Forum: AEI ToolBar (http://www.aei.pub/forumdisplay.php?fid=2)
+--- Thread: Test (/showthread.php?tid=1)



Test - AEI - 12-04-2017


try destroydialog L_detach catch()
--Functions
FN DetachPolyElements_fn SourceOBJ =
(--start function for detaching elements from an editable poly object
MasterObj = SourceOBJ 
faceCount = MasterObj.getnumfaces()
FaceTest = ((MasterObj.getnumfaces()) != 0)
for ii in 1 to faceCount while FaceTest do --ends loop when there are no faces left to select
(--start element detach loop
newName = (uniquename (MasterObj.name as string+"_"))
MasterObj.EditablePoly.SetSelection #Face #{1}
MasterObj.selectElement()
TargetElement = polyop.getFaceSelection MasterObj
polyop.detachFaces MasterObj TargetElement asNode:true name:newName
NewObj = getnodebyname newName
try destroydialog L_detach catch()
--Functions
FN DetachPolyElements_fn SourceOBJ =
(--start function for detaching elements from an editable poly object
MasterObj = SourceOBJ 
faceCount = MasterObj.getnumfaces()
FaceTest = ((MasterObj.getnumfaces()) != 0)
for ii in 1 to faceCount while FaceTest do --ends loop when there are no faces left to select
(--start element detach loop
newName = (uniquename (MasterObj.name as string+"_"))
MasterObj.EditablePoly.SetSelection #Face #{1}
MasterObj.selectElement()
TargetElement = polyop.getFaceSelection MasterObj
polyop.detachFaces MasterObj TargetElement asNode:true name:newName
NewObj = getnodebyname newName
try destroydialog L_detach catch()
--Functions
FN DetachPolyElements_fn SourceOBJ =
(--start function for detaching elements from an editable poly object
MasterObj = SourceOBJ 
faceCount = MasterObj.getnumfaces()
FaceTest = ((MasterObj.getnumfaces()) != 0)
for ii in 1 to faceCount while FaceTest do --ends loop when there are no faces left to select
(--start element detach loop
newName = (uniquename (MasterObj.name as string+"_"))
MasterObj.EditablePoly.SetSelection #Face #{1}
MasterObj.selectElement()
TargetElement = polyop.getFaceSelection MasterObj
polyop.detachFaces MasterObj TargetElement asNode:true name:newName
NewObj = getnodebyname newName
try destroydialog L_detach catch()
--Functions
FN DetachPolyElements_fn SourceOBJ =
(--start function for detaching elements from an editable poly object
MasterObj = SourceOBJ 
faceCount = MasterObj.getnumfaces()
FaceTest = ((MasterObj.getnumfaces()) != 0)
for ii in 1 to faceCount while FaceTest do --ends loop when there are no faces left to select
(--start element detach loop
newName = (uniquename (MasterObj.name as string+"_"))
MasterObj.EditablePoly.SetSelection #Face #{1}
MasterObj.selectElement()
TargetElement = polyop.getFaceSelection MasterObj
polyop.detachFaces MasterObj TargetElement asNode:true name:newName
NewObj = getnodebyname newName
try destroydialog L_detach catch()
--Functions
FN DetachPolyElements_fn SourceOBJ =
(--start function for detaching elements from an editable poly object
MasterObj = SourceOBJ 
faceCount = MasterObj.getnumfaces()
FaceTest = ((MasterObj.getnumfaces()) != 0)
for ii in 1 to faceCount while FaceTest do --ends loop when there are no faces left to select
(--start element detach loop
newName = (uniquename (MasterObj.name as string+"_"))
MasterObj.EditablePoly.SetSelection #Face #{1}
MasterObj.selectElement()
TargetElement = polyop.getFaceSelection MasterObj
polyop.detachFaces MasterObj TargetElement asNode:true name:newName
NewObj = getnodebyname newName
try destroydialog L_detach catch()
--Functions
FN DetachPolyElements_fn SourceOBJ =
(--start function for detaching elements from an editable poly object
MasterObj = SourceOBJ 
faceCount = MasterObj.getnumfaces()
FaceTest = ((MasterObj.getnumfaces()) != 0)
for ii in 1 to faceCount while FaceTest do --ends loop when there are no faces left to select
(--start element detach loop
newName = (uniquename (MasterObj.name as string+"_"))
MasterObj.EditablePoly.SetSelection #Face #{1}
MasterObj.selectElement()
TargetElement = polyop.getFaceSelection MasterObj
polyop.detachFaces MasterObj TargetElement asNode:true name:newName
NewObj = getnodebyname newName
try destroydialog L_detach catch()
--Functions
FN DetachPolyElements_fn SourceOBJ =
(--start function for detaching elements from an editable poly object
MasterObj = SourceOBJ 
faceCount = MasterObj.getnumfaces()
FaceTest = ((MasterObj.getnumfaces()) != 0)
for ii in 1 to faceCount while FaceTest do --ends loop when there are no faces left to select
(--start element detach loop
newName = (uniquename (MasterObj.name as string+"_"))
MasterObj.EditablePoly.SetSelection #Face #{1}
MasterObj.selectElement()
TargetElement = polyop.getFaceSelection MasterObj
polyop.detachFaces MasterObj TargetElement asNode:true name:newName
NewObj = getnodebyname newName