Notifications
Clear all
[Closed] Adding non-instanced modifiers
Feb 20, 2008 4:27 pm
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
Feb 20, 2008 4:27 pm
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
Feb 20, 2008 4:27 pm
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