-1

I tried to make this script in 3dsmax 2017 using listener but it does not record just that action for spline - smooth (like in the screenshot).

When I select subobject level - Vertex, and select all, then I right click and choose smooth, , I got result I need. I need to make it using script because I have a number of splines that need to be smooth. any help appreciated.

select $Line001
subobjectLevel = 1
modPanel.setCurrentObject $.baseObject

I tried couple of script that I find online but they don't work in 3dsmax 2017. So if you have solution example that work in 3dsmax 2017.screenshot

Stef
  • 3
  • 4

1 Answers1

1

See the SplineShape topic in the maxscript reference.

for spline = 1 to numSplines $
    where (selectedKnots = getKnotSelection $ spline).count > 0 do
        for knot in selectedKnots do setKnotType $ spline knot #smooth

updateShape $
Swordslayer
  • 2,061
  • 1
  • 13
  • 15