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

Manga Tengu <mangate...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #126936|a script that loads a file, |a script that tries to
        description|creates a view on it. Adds  |mergeDown a layer
                   |an extra solid layer at the |
                   |bottom and merges           |

--- Comment #1 from Manga Tengu <mangate...@gmail.com> ---
Comment on attachment 126936
  --> https://bugs.kde.org/attachment.cgi?id=126936
a script that tries to mergeDown a layer

>from krita import *
>
>doc = Application.openDocument("PathToImage")
>window = Application.activeWindow()
>view = window.addView(doc)
>window.showView(view)
>paintLayer = doc.createNode("Background1", "paintLayer")
>i = InfoObject()
>i.setProperty("color", "white")
>s = Selection()
>s.select(0, 0, doc.width(), doc.height(), 255)
>fillLayer = doc.createFillLayer("Background2", "color", i, s)
>root = doc.rootNode()
>children = root.childNodes()
>root.setChildNodes([fillLayer, paintLayer, children[0]])
>children = root.childNodes()
>children[1].mergeDown()

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

Reply via email to