Jump to content
  • Advertisement
Sign in to follow this  
V-man

Blender, Python getMaterial()

This topic is 3631 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, it's me again. For objects, we can call obj.getMaterial() but the document says it gets a list of materials. What can I do with it? What I really want to know is how to know which texture is applied to an object. How many textures are applied : dual texture, 3, 4, etc.

Share this post


Link to post
Share on other sites
Advertisement
I can't help with the specifics, but have you tried using dir() on the objects in the returned list?

It should give you a list of members, which may help work out where they're hiding the info you're after.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!