macroScript UniChamferDialog Category:"Niklit Scripts" Tooltip:"UniChamferDialog" ( if getCommandPanelTaskMode() != #modify then\ setCommandPanelTaskMode mode:#modify local curObj = modPanel.getCurrentObject() Case (classOf curObj) of ( Edit_Poly: (Case subobjectlevel of ( 1: $.modifiers[#Edit_Poly].PopupDialog #ChamferVertex 2: $.modifiers[#Edit_Poly].PopupDialog #ChamferEdge 4: $.modifiers[#Edit_Poly].PopupDialog #Inset ) ) Editable_poly: (Case subobjectlevel of ( 1: $.EditablePoly.PopupDialog #ChamferVertex 2: $.EditablePoly.PopupDialog #Chamfer 4: $.EditablePoly.PopupDialog #Inset ) ) Edit_mesh: (Case subobjectlevel of ( 1: macros.run "Editable Mesh Object" "EMesh_VChamfer" 2: macros.run "Editable Mesh Object" "EMesh_EChamfer" ) ) Editable_mesh: (Case subobjectlevel of ( 1: macros.run "Editable Mesh Object" "EMesh_VChamfer" 2: macros.run "Editable Mesh Object" "EMesh_EChamfer" ) ) line: (Case subobjectlevel of ( 1: macros.run "Editable Spline Object" "ESpline_Fillet" 3: macros.run "Editable Spline Object" "ESpline_Outline" ) ) SplineShape: (Case subobjectlevel of ( 1: macros.run "Editable Spline Object" "ESpline_Fillet" 3: macros.run "Editable Spline Object" "ESpline_Outline" ) ) Edit_Spline: (Case subobjectlevel of ( 1: macros.run "Editable Spline Object" "ESpline_Fillet" 3: macros.run "Editable Spline Object" "ESpline_Outline" ) ) ) )