https://bugs.kde.org/show_bug.cgi?id=389340
Bug ID: 389340
Summary: Creating a fill layer with the color generator the
result is always black
Product: krita
Version: git master
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Scripting
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Running this script results in a black, uninitialized color for the color
layer:
PASTEBIN
new paste
trends API tools faq
Guest User
-
Public Pastes
Untitled0 sec ago
Untitled4 sec ago
UntitledC | 8 sec ago
UntitledmIRC | 9 sec ago
Untitled10 sec ago
Untitled10 sec ago
Untitled17 sec ago
Untitled21 sec ago
daily pastebin goal
17%
help support pastebin
SHARE
TWEET
Untitled
a guest Jan 23rd, 2018 0 Never
NOTE: Your guest paste has been posted. If you sign up for a free account, you
can edit and delete your pastes!
rawdownloadcloneembedreportprint text 0.38 KB
from krita import *
d = Krita.instance().activeDocument()
print (d)
i = InfoObject();
i.setProperty("color", QColor(100, 100, 200, 255))
print(i)
s = Selection();
s.select(0, 0, d.width(), d.height(), 255)
print (s)
n = d.createFillLayer("test", "color", i, s)
print (n)
r = d.rootNode();
print(r)
c = r.childNodes();
print(c)
r.addChildNode(n, c[0])
d.refreshProjection()
RAW Paste Data
from krita import *
d = Krita.instance().activeDocument()
print (d)
i = InfoObject();
i.setProperty("color", QColor(100, 100, 200, 255))
print(i)
s = Selection();
s.select(0, 0, d.width(), d.height(), 255)
print (s)
n = d.createFillLayer("test", "color", i, s)
print (n)
r = d.rootNode();
print(r)
c = r.childNodes();
print(c)
r.addChildNode(n, c[0])
d.refreshProjection()
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
create new paste / dealsnew! / api / trends / syntax languages / faq
/ tools / privacy / cookies / contact / dmca / scraping / go
Site design & logo © 2017 Pastebin; user contributions (pastes) licensed under
cc by-sa 3.0 -- Dedicated Server Hosting by Steadfast
--
You are receiving this mail because:
You are watching all bug changes.