PDA

View Full Version : quick question


Bixel
10-11-2007, 12:17 AM
what do I use to find which objects in the scene do not have any material applied to them. For instance I draw some boxes, they come up in random colors. These do not have any texture/material applied to them, what is the ask function to find these particular objects?

RustyKnight
10-11-2007, 03:02 AM
what do I use to find which objects in the scene do not have any material applied to them. For instance I draw some boxes, they come up in random colors. These do not have any texture/material applied to them, what is the ask function to find these particular objects?
I believe that:

for oNode in objects do (
if oNode.material == undefined then (
format "% is naked!\n" oNode.name
)
)
should work...

Shane

CGTalk Moderation
10-11-2007, 03:02 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.