https://bugs.kde.org/show_bug.cgi?id=520729

--- Comment #1 from IPv6 <[email protected]> ---
Code used to find layer before activation roughly:


```
def lfind(layerName, parentLayer):
    for layer in reversed(parentLayer.childNodes()):
        if layerName == layer.name():
            return layer
        if len(layer.childNodes()) > 0:
            returned = lfind(layerName, layer)
            if returned is not None:
                return returned
    return None

from krita import Krita

app = Krita.instance()
doc = app.activeDocument()

layerNode = lfind("Background", doc.rootNode())
doc.setActiveNode(layerNode)
doc.waitForDone()
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to