![]() Registered Member ![]()
|
I have 3 layers and I need to merge them down in the following order to reproduce wanted effect.
First step: (layers are listed as in layer docker, A is the topmost layer) A <--- I want to merge this with B B C Second step: B <--- I want to merge this with C C Resulting in C having all of the merged information. Let's say I have made the layers with the following piece of code:
And now I want to merge them down together. So I start with:
But when I do:
Nothing happens. It seems like A and B have gone to heaven and I have a new fellow here that looks just like B, but when I do:
It claims to be A What's the intended (or working) procedure to merging down the layers? If you put this in ' Tools > Scripter ' it should reproduce the situation (AKA here's the full code):
|
![]() Registered Member ![]()
|
Further research highlights my trouble.
Outputs:
|
![]() Registered Member ![]()
|
Further research elaborates the problem. Notice how A and B in the example above don't have a named parent node. Well look at this: it seems to be in the same address than the root node. How is that happening?
Outputs:
Somehow it almost looks like I merged the layers. It's still 50% opaque, which is not the desired effect. It looks like I merged pixeldata instead of the layers. But while testing out this thing, I noticed that if I select two layers from Layers Docker, and use "Merge with layer below" I end up with 100% opaque layer with transparency saved in the pixeldata. That's how I thought merge always works. But if I select only the top layer and use the exact same "Merge with layer below", it does the same thing as this little snippet, it merges the pixeldata and keeps the layer data intact. I'd really love an explanation. Summary of 'so far': I've managed to merge the layers, but not the way I need to. |
![]() Registered Member ![]()
|
this manages to duplicate the layers and then merge them together, but I will have to implement this into my script to see if it actually manages to do the job...
Last edited by saedjubarin on Mon Mar 18, 2019 7:17 pm, edited 1 time in total.
|
![]() KDE Developer ![]()
|
Might be related to https://bugs.kde.org/show_bug.cgi?id=405366
|
![]() Registered Member ![]()
|
Would be nice to be able to merge multiple nodes in one go with just a list or something. Like Krita.instance().activeDocument().mergeNodes([node, node, node, ...]) and it would just merge them from top to bottom as if they were adjacent, resulting in the bottom-most node having the merged result.
|
Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell