0
$\begingroup$

enter image description here

I'm not sure if this question is already answered. In the python, how can i know if that texture in a material is enabled or disabled?

I was planning to get all enabled textures not the disable ones. Thank you.

$\endgroup$
0
$\begingroup$

If you don't know any name in python properties, you can find it in data-blocks outliner:

enter image description here

In your case the value named use

For example, this points to first texture slot of first material of selected object:

bpy.context.object.data.materials[0].texture_slots[0].use
$\endgroup$
  • $\begingroup$ Darn. I'm new to python but still i didn't know there's something like that. Thank you @Crantisz. $\endgroup$ – Brandy33 May 22 '18 at 6:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.