This Macro needs a UI
I made a macro of a repetitive task of attaching an object to a box. I would like to be able to choose the object to attach from a UI and then continue on with the rest of the macro.
Box lengthsegs:1 widthsegs:1 heightsegs:1 length:600 width:600 height:600 mapcoords:on transform:(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0]) isSelected:on
modPanel.addModToSelection (Edit_Poly ()) ui:on
$.modifiers[#Edit_Poly].SetOperation #Attach
:This is where I want to UI button to choose an object to selectand then continue with the rest of the macro once an object is selected.
$.modifiers[#Edit_Poly].Attach $hexwall4 editPolyNode:$
subobjectLevel = 5
$.modifiers[#Edit_Poly].SetSelection #Face #{}
$.modifiers[#Edit_Poly].Select #Face #{1..6}
actionMan.executeAction 0 "40020" -- Edit: Delete Objects
$.modifiers[#Edit_Poly].ButtonOp #DeleteFace
The Macro is to prep objects for export to UE
Any help is appreciated
Thanks
ME
Comments
.
Try this:
Tools and Scripts for Autodesk 3dsMax