This forum has been archived. All content is frozen. Please use KDE Discuss instead.

krita group layer collapsed???

Tags: None
(comma "," separated)
pitesi
Registered Member
Posts
4
Karma
0

krita group layer collapsed???

Tue May 21, 2019 2:54 am
Hello everyone:

I have a problem. I want to use Python script to manipulate the

folding function of layer groups. The script is working properly, but

the layer groups are not folded. Is this a Bug?
Code: Select all
instance = Krita.instance()
doc = instance.activeDocument()
rnode = doc.rootNode()
for node in rnode.childNodes():
    if node.type() == "grouplayer":
        if not node.collapsed():
            node.setCollapsed(True)


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]