Jump to content

get object name by material


oviam
 Share

Recommended Posts

Can anyone tell me how to get object or objects name by material?

example:i have one material in my scene which is assigned to some objects,i want to get those objets name(as an array or something) through this material.

pls explain me how to do this.

 

thanks

-mani.

Link to comment
Share on other sites

thanks Diego ,now my script works fine ,

 

for sunet,

thanks for your reply sunet,but my idea was to rename all the scene materials to the corrseponding asigned object name so i have to get the object name through script(i don't want to select those objects)...

 

thanks

-mani.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...