Skip to main content
brooks_0502
Participant
Feb 24, 2026 9:38 PM UTC
Open for Voting

Python API GroupLayerNode content_effects() method always returns empty list

import substance_painter as sp
current_stack = sp.textureset.get_active_stack()

selected_layers = sp.layerstack.get_selected_nodes(current_stack)

for layer in selected_layers:

    if layer.get_type() == sp.layerstack.NodeType.GroupLayer:

        # this always returns an empty list, regardless of the number of effects on the group layer

        layer_effects = layer.content_effects()

    1 reply

    affectionate_youth2911
    Participant
    Oct 26, 2026 12:33 PM UTC

    Can second this is happening.  From my own testing, this is only on group layers, fills seem fine.  I can create a new Group layer, add something to the content stack & Python will find it fine.  If I then save the scene & reopen it, it returns an empty list.

    If I add something new to the content stack, _that_ appears to Python, and the old ‘broken’ one does not, but if I reorder the broken one above the new one, it’s then available to Python again.

    I’ll try and attach some images, I’ve been trying to find a workaround that doesn’t involve someone manually fudging the order of layers for my code to know they’re there!

    Translate