[Closed] Spline vertex weld
HI everybrody,
whats the max script to :
- enter subobject level vertex of a spline
- select all vertex
- weld operation (tolerance 0.003)
!!! Of a spline not a editable poly or editable mesh.
Thank you
It’s all in the documentation:
https://help.autodesk.com/view/3DSMAX/2020/ENU/?guid=GUID-6C6A35EB-DD5F-40C1-9869-0938849F6842#WS3ED54CBA79FF2E3D-417FC02312B7835BF26-76E4
setKnotSelection -shape -spline_index_integer -knot_index_array -keep: boolean
weldSpline -splineShape node -tolerance
Thank yor for the reply, I was using this code below but with no success.
subobjectLevel = 1
modPanel.setCurrentObject $.baseObject
actionMan.executeAction 0 “40021” – Selection: Select All
splineOps.weld
subobjectLevel = 0
modPanel.setCurrentObject $.baseObject
clearSelection()
Select editable spline or line object and execute this:
(
curO = selection[1]
if classOf curO == splineShape or classOf curO == Line do
(
max modify mode
subobjectlevel = 1
max select all
weldSpline curO 0.003
)
)
Thank you thank you miauu !!
The code above will work even if I have more modifiers up the stack of the editable spline ?