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

            Bug ID: 392183
           Summary: Running python script duplicating layer and applying
                    filter crashes Scripter
           Product: krita
           Version: 4.0
          Platform: Other
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Scripting
          Assignee: krita-bugs-n...@kde.org
          Reporter: cya...@gmail.com
  Target Milestone: ---

Running python script duplicating layer and applying filter crashes Scripter
(or Krita, not sure). On Win8 and Krita is version 4.0.0.

Script is this:

import sys
from krita import *

doc = Krita.instance().documents()[0]
height = doc.height()
width = doc.width()
newlayer = doc.topLevelNodes()[0].duplicate()
root = doc.rootNode()
newthing = root.addChildNode(newlayer, None)
newlayer.setName("Test")
myconfig = InfoObject()
myconfig.setProperty("s", -100)
filter = Krita.instance().filter("hsvadjustment")
filter.setConfiguration(myconfig)
filter.startFilter(newlayer, 0, 0, width, height)

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

Reply via email to