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

Scott Petrovic <scottpetro...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |NEEDSINFO
                 CC|                            |scottpetro...@gmail.com
         Resolution|---                         |WAITINGFORINFO

--- Comment #3 from Scott Petrovic <scottpetro...@gmail.com> ---
There might need to be some more digging with this. There are a lot of
different things going on with the script. I don't know if it is the
mergeDown() that is giving issues. I am running this script that merges a layer
down and it seems to work ok...

from krita import *

# create document and show in view
doc = Krita.instance().createDocument(1280, 1024, "Document name", "RGBA",
"U8", "", 300.0)
view = Krita.instance().activeWindow().addView(doc) # shows it in the
application
window = Application.activeWindow()

# create nodes and add it to the layers stack
paintLayer = doc.createNode("Background1", "paintlayer")
paintLayerTwo = doc.createNode("Background2", "paintlayer")

root = doc.rootNode()
root.addChildNode(paintLayer, None)
root.addChildNode(paintLayerTwo, None)

# merge the top layer down
paintLayerTwo.mergeDown()

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

Reply via email to