Notifications
Clear all

[Closed] Adding non-instanced modifiers

If I have 20 spheres and I want to add a Material Modifier to each one so that each sphere is unique how would I go about doing it?

I have my spheres selected:

[i]for o in selection do o.addModifier (Materialmodifier ()) ui:on

[/i]I know I have something wrong in my syntax but I can’t figure out what it is.

thanks in advance.

3 Replies

Hi,

AddModifier is a function, it’s not a method of the objects so your code should be:

for o in selection do addModifier o (Materialmodifier ()) ui:on

hOpe this helps,
o

Awesome; thanks!

Just so you know, you may find my materialIDRandomizer script useful…

http://www.neilblevins.com/soulburnscripts/soulburnscripts.htm

It doesn’t guarantee a unique material ID to object, but it may prove to be useful to whatever you’re trying to do (or at least you can steal some code from it <G>)

  • Neil