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

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

(
	radialSides = 4
	for o in selection where hasProperty o #render_sides do
	(
		o.render_sides = radialSides
	)
)
nnq2603's picture

Thanks miauu for the answer!

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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.