Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • $\begingroup$ Thank you, But how do I find out which texture is active on a given face? $\endgroup$
    – Eewec
    Commented Jul 22, 2017 at 9:36
  • $\begingroup$ Oh, I thought you had multiple textures. For the active one you simply need to access material.active_texture, or material.active_texture_index. $\endgroup$
    – TLousky
    Commented Jul 22, 2017 at 9:38
  • $\begingroup$ I do have multiple Textures. But each texture is used on different surfaces. I'm trying to figure out how to export the ID of which texture slot is active for a given Face in the mesh as material.active_texture and material.active_texture_index give me the active slot in the Blender UI, not the active slot for the face of the mesh. Or at least they do when I try to use them. $\endgroup$
    – Eewec
    Commented Jul 22, 2017 at 9:58
  • $\begingroup$ The active texture of the active material on that face should be the correct texture. In Blender Internal this will be easier to pull, while in Cycles it's harder to determine which texture is the "active" texture (unless you mean the one that's active in the node editor). $\endgroup$
    – TLousky
    Commented Jul 22, 2017 at 12:57
  • 2
    $\begingroup$ For BI a single material can be assigned to a face, one material can use multiple textures, every enabled texture in the materials texture_slots is used by that material. For cycles a material can have multiple texture nodes, you would need to loop through all the nodes to find what textures it uses. $\endgroup$
    – sambler
    Commented Jul 22, 2017 at 18:18