![]() Registered Member ![]()
|
I was hoping someone could please offer some help with Krita?
I know how to export all layers separately as a single image, but I cannot export all layers separately as a sequence? Does anyone know how I can achieve this? I have more than 30 layers, but the "Export Layers" button only exports on image from each layer and the "Render Animation" button merges them all into one file sequence. Instead, I want 30 file sequences of all the layers.. Thanks, Shaun |
![]() KDE Developer ![]()
|
No, that's not possible, I'm afraid.
|
![]() Registered Member ![]()
|
Ah ok - thank you for the reply Boudewijn.
I was thinking seeing as both things are possible separately (exporting all layers and exporting render animation), that I might be able to combine the two functions somehow using a little python. I have to do this a few times in our pipeline, as we provide updated versions etc, so if this was possible, it would have a huge impact on our efficiency. |
![]() Registered Member ![]()
|
You can do this by rendering an animation but you first have to copy/paste the frame-0 contents of all the layers (after they've been animated) to sequential frames of one of the layers that you choose as a 'carrier' for the images.
If you have Layer-0 to Layer-N as your image, you'd convert them to animated layers by using right-click then Duplicate Frame (or a keyboard shortcut) on frame-0 for all Layer-(n=0 to N) Then you'd choose Layer-0 as the obvious carrier layer. Then for each Layer-(n=1 to N) you'd copy/paste frame-0 of Layer-n to frame-n of Layer-0 and turn off the visibility of Layer-n. After that, you'd have all your original images as sequential frames in Layer-0 with all other layers turned off. Then you'd Render Animation with Export set to Image Sequence. You can do all this manually with only mouse clicks (or keyboard shortcuts if you want to set them up). It sounds like a not-difficult task for Python scripting, assuming that all the functions are accessible. I may have misunderstood what you mean by "30 file sequences of all the layers" but such manipulation is very possible, at least manually. |
![]() Registered Member ![]()
|
Hi You Have A Grey Beard,
Yes, that's exactly what I'm taking about, but that is in itself far too much work to do every time I want to render. Especially as this is a 2 month long project. The Export Layers function comes so close to doing what I want, but it's a shame it only exports one single frame (the currently selected frame) and not all frames in the sequence ![]() |
![]() KDE Developer ![]()
|
Maybe you could script it? You might have to use the nightly build for that, though. There's some api to script animation in that.
|
![]() KDE Developer ![]()
|
Oh, I have another idea... You could render to ora image images and then simply unzip those; ora images contain all layers as png images.
|
![]() Registered Member ![]()
|
Thanks for the idea! That did seem promising, but unfortunately when I unzipped the .ora file, the .png inside was a single file of all the merged layers. There wasn't a .png for every single layer.
|
![]() KDE Developer ![]()
|
That's the merged image, but each layer should also be there, in a subfolder
|
![]() Registered Member ![]()
|
In the main folder i have a file called: "mergedimage.png" (self explanatory) I have a subfolder called "data" with one .png in it called: "layer0.png" (an image of all layers - exactly the same as the "mergedimage.png" file) and a "Thumbnail" folder with the same image as above. In Krita however, I have a test scene with 3 layers and a background. |
![]() KDE Developer ![]()
|
Hm, that sounds like a bug.
|
![]() Registered Member ![]()
|
Have you tried the bundled python script for exporting all layers?? Tools > scripts > Export layers Select batch export, format and export place. Filename will be named the same as your layer name. I hope that helps you.
Blog http://colorathis.wordpress.com, Deviantart http://ghevan.deviantart.com/
|
![]() Registered Member ![]()
|
Hi ghevan,
That comes close to doing what I want. It does export all layers, but unfortunately it only renders out one single frame from each layer (the currently selected frame). What I require is for a way to do exactly that, but for all frames in my timeline not just the currently selected frame. ![]() |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]