PDA

View Full Version : working with modifiers!


mixerbr
09-26-2004, 11:10 PM
Hello people!

i'm new here! my name is Pedro and i'm from brazil

ok lets to my problem

how can i make seek for all the objets who have some modifier ?
ok i have to make a array .. but how?

anyone can help me?

tnks!

cheers

Bobo
09-27-2004, 02:08 AM
Hello people!

i'm new here! my name is Pedro and i'm from brazil

ok lets to my problem

how can i make seek for all the objets who have some modifier ?
ok i have to make a array .. but how?

anyone can help me?

tnks!

cheers

Assuming that you are looking for modifiers of the same class (like all MeshSmooth, all Bend etc.) and NOT all instances of the same modifier, you could use something like:

theObjects = for o in objects where
(for m in o.modifiers where classof m == MeshSmooth collect m).count > 0
collect o

mixerbr
09-27-2004, 02:00 PM
tnks very much bobo!!

it works!

CGTalk Moderation
01-19-2006, 09:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.