Author Topic: Check if Texture Set is Visible  (Read 1073 times)

Hi - I'd like to do something like this:

Code: [Select]
for texture_set in substance_painter.textureset.all_texture_sets():
    if texture_set.is_visible:
        # do something

Is there any way to find out currently if a particular texture set is visible or not?


You can actually find that if you will recursively search with PySide each child widget of the interface. It is a bit of pain to try and find stuff in the interface, but it is possible. What's nice is that you don't even need to have the texturesSets window visible.