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

krita grouplayer collapesd can't active on python???

Tags: None
(comma "," separated)
pitesi
Registered Member
Posts
4
Karma
0
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. who can help me with my question ? thank you very much
here is the Code and image:
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]