PDA

View Full Version : Group by material


mhinks
03-31-2008, 01:14 PM
Hi all,

Im after a script/method to ungroup everything in a scene, and regroup using material selection. So you end up with a scene with groups, named as per each material, with only object in the group that have the mat on?

Its for use with psd manager, allowing alpha mattes to be generated for photoshop masks.

Thanks

Bobo
03-31-2008, 01:58 PM
Hi all,

Im after a script/method to ungroup everything in a scene, and regroup using material selection. So you end up with a scene with groups, named as per each material, with only object in the group that have the mat on?

Its for use with psd manager, allowing alpha mattes to be generated for photoshop masks.

Thanks

That's cool, but why on Earth would you use groups for that? They are Evil!
You could create named selection sets based on materials, or just run a for loop each time you need the objects sharing a material before you do something with them. Or use Layers.
Groups are a form of Hierarchy with quirks and I really see no reason to use them for what you described.

mhinks
03-31-2008, 02:08 PM
cool. The only reason I use groups is cos you can select them in the psd manager alpha matte section, and it will produce a selectable mask for the group in a psd. Im not sure you can do it with selection sets.

If the whole scene is grouped up by material, you can get a set of masks for every group in only a couple of minutes. Saves producing multi mattes in vray or single object masks with overides.

Im v interested in your input for this workflow tho.

CGTalk Moderation
03-31-2008, 02:08 PM
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.