ScriptSpot

Forum topic · General Scripting

How to change all (Radial) sides value of all splines in a max scene to a desired number?

By nnq2603 · 2020-05-18

Description

How to change all (Radial) sides value of all splines in a max scene to a desired number? Assume, there're many different Radial sides without any pattern?

Can anyone help with some lines of script to set Radial sides value of all spline in a scene to a certain number? Thanks

Comments (2)

.

miauu · 2020-05-22


(
	radialSides = 4
	for o in selection where hasProperty o #render_sides do
	(
		o.render_sides = radialSides
	)
)

Thanks miauu for the answer!

nnq2603 · 2020-06-10

Thanks, man. Appreciated your help. Nice day! Works well for selection.

Only small problem with scriptspot is the delayness in post submission, so when I posted a question, usually it takes the moderator 1 week or 2 (since the time I posted to the time it got approved to display in sites). And after 1-2 weeks, I often forget to come check the answer in time and say thanks.