AEI script

Full Version: Test
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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