Export layer structure to PNG problem

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
Thijs
Posts: 3
Joined: 14 Jul 2021, 14:41
Location: Utrecht, the Netherlands
Contact:

Export layer structure to PNG problem

Post by Thijs »

Hey all, I have a question about the export layer structure to PNG feature of 11.5.2.

I’m wondering if there is a way to export all frames from all layers as separate PNG files?
Right now when I export a layer structure I only get 1 PNG file for each new frame, like when you export a Json structure only without the Json file.

I noticed the ‘Export all Images’ option which does give me a PNG file for empty frames but no PNG’s for any extra exposures.
TVPaint PRO 11.5.2 - 64bit
Windows 10, 64-bit, 4.0 GHz Intel Core i7, 32GB Memory
Wacom Cintiq 27QHD - Wacom Driver version 6.3.43-3
Xavier
Posts: 1852
Joined: 01 Oct 2019, 11:08

Re: Export layer structure to PNG problem

Post by Xavier »

Hi, I think you should pay attention to the naming patterns.
At generation of the pictures, your files are probably overwritten by the next layer.
User avatar
Thijs
Posts: 3
Joined: 14 Jul 2021, 14:41
Location: Utrecht, the Netherlands
Contact:

Re: Export layer structure to PNG problem

Post by Thijs »

Hi, thanks for the reply. I’m not sure if that’s the problem, let me show you.

These are the export settings I used. For the folder and file naming patterns I just used the default settings. You can also see most frames have double exposures and also some holds.
example_01.png
On the left are the folders for each layer that are generated, this is all working great.
But on the right are the PNG files for one of the layers and only the first image of each new frame is exported and none of the extra exposures. You can also see the gaps in frame numbers in the names of the files.
example_02.png
A workaround I tried is turning all the layers into single frames. this works, but it would be really great if I could export every single frame as a PNG without messing up my project. is this possible in any way?
TVPaint PRO 11.5.2 - 64bit
Windows 10, 64-bit, 4.0 GHz Intel Core i7, 32GB Memory
Wacom Cintiq 27QHD - Wacom Driver version 6.3.43-3
User avatar
Peter Wassink
Posts: 4283
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: Export layer structure to PNG problem

Post by Peter Wassink »

Thijs wrote: 15 Jul 2021, 22:56 A workaround I tried is turning all the layers into single frames. this works, but it would be really great if I could export every single frame as a PNG without messing up my project. is this possible in any way?
Thats what i would do.
Do you know you can restore the project back using the [=?] button from the "Handy custom Panel"
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
User avatar
Thijs
Posts: 3
Joined: 14 Jul 2021, 14:41
Location: Utrecht, the Netherlands
Contact:

Re: Export layer structure to PNG problem

Post by Thijs »

Peter Wassink wrote: 16 Jul 2021, 11:54
Thijs wrote: 15 Jul 2021, 22:56 A workaround I tried is turning all the layers into single frames. this works, but it would be really great if I could export every single frame as a PNG without messing up my project. is this possible in any way?
Thats what i would do.
Do you know you can restore the project back using the [=?] button from the "Handy custom Panel"
Hey Peter!

Yeah the [=?] is a nice fix for the workaround but it would still cost a lot of time to do this whole process for every export.

When looking in the ‘Handy Custom Panel’ I found the ‘Export all images and layers into folders’ button under Miscellaneous. I didn’t know this button existed but it does exactly what I was hoping to do with the Export layer structure to PNG.

Only visible layers are exported, folders are generated using layer names and all frames are exported to PNG.

My only problem was the naming of the PNG files. The file name didn’t include the layer name so if I would import the PNG sequences into for example After Effects the order of the layers would be lost. Also, the name added the name of the clip which I don’t really use for anything.
I made a little tweak in the script so now the name of the exported files starts with the number of the layer instead of the name of the clip. It’s a small change but it makes it perfect for me personally. :D

Check it out if you want:
Export All.tvpx
(62.5 KiB) Downloaded 496 times
TVPaint PRO 11.5.2 - 64bit
Windows 10, 64-bit, 4.0 GHz Intel Core i7, 32GB Memory
Wacom Cintiq 27QHD - Wacom Driver version 6.3.43-3
Post Reply