Change modifier

Hi all...

Anyone Know how do I change one modifier in other modifier in all objects ?

P.s - I change all modifiers in scene of "MeshSmooth" to "TurboSmooth"

Thanks

Comments

Comment viewing options

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

Do it like this


objArr = #()
for o in objects where o.modifiers.count != 0 do
(
	for m in o.modifiers where classof m == TurboSmooth do append objArr o
)
for o in objArr do 
(
	for m = o.modifiers.count to 1 by -1 where classof o.modifiers[m] == meshsmooth do
	(
		deleteModifier o m
	)
	addmodifier o (TurboSmooth())
)

bga

3dtoall's picture

yes its like this

hi it really works.I have used this in my code.thanks!

kimarotta's picture

Hey Barigazy.... very thanks

Hey Barigazy.... very thanks is perfect... and very useful...

kimarotta.com.br
3d Artist  

Comment viewing options

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