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
	)
)

Comment viewing options

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