Notifications
Clear all

[Closed] Making instanced modifiers unique

Hi,
I have lots of different objects sharing the same instanced modifier (a reactor_Cloth).
I need to make these modifiers unique for each object.
So I tried scripting it that way :

for o in selection do
  (
  	for m in o.modifiers do
  	(
  		if m == "reactor_Cloth" then InstanceMgr.MakeModifiersUnique selection m #individual
  	)
  
  )

That doesn’t return any error message, but doesn’t make my instances unique.
What I’m I doing wrong ?

Thanks

6 Replies
 PEN
classof m == reactor_Cloth

m is equal to a modifier, not the name of the modifier so you could check the name property using a string or check the class of the modifier to see if it is the one that you want.

Ah yes, you’re right. Thanks
So I tried that, but still no luck.

try just making a copy of the modifier and using that.

I made a script that has de-instanceing and instancing options for modifiers and objects here:
http://www.scriptspot.com/3ds-max/modifier-modifier-zorb

hey, thanks a lot floopyb for this wonderul script. Sorry for the late reply but I didn’t have time to test the script until this week-end. It is very helpful !

No probs, glad it is of use!