Hi!
I'm quite new to MaxSxript and i'd like to bevel two selected side-by-side faces and chamfer the edges of the new beveled faces.
The selected Faces for this action will be always side-by-side.
I've enabled the MacroRecorder while executing the bevel/chamfer on the edidable poly shown on the left side of the Screenshot , and the commands look like this:
$.modifiers[#Edit_Poly].SetOperation #Bevel
$.modifiers[#Edit_Poly].bevelType = 1
$.modifiers[#Edit_Poly].bevelHeight = 3.6
$.modifiers[#Edit_Poly].bevelOutline = -4
$.modifiers[#Edit_Poly].Commit ()
subobjectLevel = 2
$.modifiers[#Edit_Poly].Select #Edge #{8, 13}
$.modifiers[#Edit_Poly].Select #Edge #{12}
$.modifiers[#Edit_Poly].Select #Edge #{11}
$.modifiers[#Edit_Poly].Select #Edge #{10}
$.modifiers[#Edit_Poly].Select #Edge #{9}
$.modifiers[#Edit_Poly].SetOperation #ChamferEdge
$.modifiers[#Edit_Poly].edgeChamferType = 1
$.modifiers[#Edit_Poly].chamferEdgeAmount = 1.187
$.modifiers[#Edit_Poly].edgeChamferSegments = 2
$.modifiers[#Edit_Poly].edgeChamferTension = 0.5
$.modifiers[#Edit_Poly].chamferEdgeOpen = off
$.modifiers[#Edit_Poly].Commit ()
The problem is, that the Egde indices are hard-coded and the code won't work on other faces - see screenshot the poly on the right side.
So is there a way to make this Edge-Selection relative to the selected faces ?
Hope someone could help me out. Thanks in advance & sorry for my bad english :)