Page 1 of 1

Export Multiple TVPaint files from CMD / George Script.

Posted: 09 May 2025, 13:07
by AtoArtworks
Hello fellow TVPaint users! First time posting a thread here, so I hope everything is in order.

I have a very simple but at the same time tricky question: Whether it's possible to export multiple TVPaint projects using the "Clip: Layers Structure" export function from the command line and/or George Script.


I am currently working on a large school production with over 80 shots, so it creates a huge overhead time opening each file to re-export all layers from TVPaint to keep the edit updated.

I have stumbled upon on some, though very few threads, asking a similar question, such as:
http://www.tvpaint.net/forum/viewtopic.php?t=12101
Though this seems to be targeted toward MAC rather than Windows (the OS we are currently using), and seems to assume all project files are in the same folder.


Our current folder structure looks like this:

sq00 -> sh000 -> work & publish.
work contains the latest working file & older versions of the shot.
the publish contains only one TVPaint file, the most recent version of the shot, as well as PNG sequences for all the layers.



What I would need is this:

A command line script (or a george script to execute from cmd) that can point to all the publish version of each TVPaint project for each shot, and exports the projects using the last configurations & location where the "Clip: Layer Structure" was exported to last. That's it.

A massive bonus would be if it's possible to immediately without having opened or exported the TVPaint file prior, specify all the info in the "Clip: Layer Structure", such as export location (preferably relative to the "publish" file location), folder/file name pattern, format, background, etc. Though I realize this is a more difficult undertaking than the prior, and I would be infinitely grateful just for a solution that assumes this info is already present in the file from a previous export.


Thank you again, and please let me know if there's anything else I can provide or resources I can look at to solve this.

Best regards, Anton Skogsberg.

Image

Re: Export Multiple TVPaint files from CMD / George Script.

Posted: 12 May 2025, 05:43
by Hironori Takagi
The script that runs export "Clip: Layers structure" with a single button is available for Japanese users.
I think you can achieve your goal by adding the preface "run for all projects" to this program.
Due to my current work commitments, I'm not confident I'll be able to rewrite the script, so for now I'll just share the above program data.

Re: Export Multiple TVPaint files from CMD / George Script.

Posted: 12 May 2025, 14:01
by AtoArtworks
Ah! Thank you so much again Hironori! Haha this is the second time you've come to my scripting rescue during this project. This is incredibly helpful! I'll try do some research into how to do a setup that runs this for all the projects, but this is already miles ahead of anything I had prior!

Re: Export Multiple TVPaint files from CMD / George Script.

Posted: 12 May 2025, 14:06
by D.T. Nethery
I wonder if the TVPaint Convertor will do what you need ? I have to confess I don't really understand how the TVPaint Convertor works as the documentation is very minimal. There should be a full video tutorial or at least screenshots to go with the written instructions. https://doc.tvpaint.com/docs/import-exp ... -converter

Re: Export Multiple TVPaint files from CMD / George Script.

Posted: 15 May 2025, 12:58
by Matthieu
Hi,

The TVPaint Converter should allow you to do this easily, as David suggested.

V12's user manual is not complete with new screenshots yet. In the meantime, you can consult V11's user manual since it contains some screenshots of the Converter's interface along the text explanations.

Re: Export Multiple TVPaint files from CMD / George Script.

Posted: 16 May 2025, 14:36
by D.T. Nethery
Matthieu wrote: 15 May 2025, 12:58 Hi,

The TVPaint Converter should allow you to do this easily, as David suggested.

V12's user manual is not complete with new screenshots yet. In the meantime, you can consult V11's user manual since it contains some screenshots of the Converter's interface along the text explanations.
Thank you for reminding me that the screenshots for the TVPaint Converter are there in the TVPaint 11 user manual. I really need to learn to use the converter properly (it's just laziness on my part). I sort of learned it at one point, then forgot what I learned. (I'm like that, if I don't use something regularly I tend to forget it , but usually it comes back to me if I get a little refresher course)

Re: Export Multiple TVPaint files from CMD / George Script.

Posted: 17 May 2025, 13:58
by Peter Wassink
This was my experience in breaking up a single project into 25 smaller ones as both 25 .tvpp and .mp4 files

steps:
1) manually split the project up into 25 separate clips one by one.

2) manually renaming each clip (because of that RIGHTRIGHTRIGHT..... thing)

3) exporting all clips as TVPaint projects (using the script of Lucas)
Bug.... i purposely embedded a custompanel in the mother project so that each new project would have this
but this was not contained in the separate projects!

4) using the convertor to convert each project as MP4.
.....(i found filebrowsing with the convertor to be extremely slow)
once the folder was found this functioned perfect

Though i managed to do it, some steps are still unnecessary labour intensive (step 1 and 2)
why not be consistent and have a rename option like instances have?:
rename all.jpg
rename all.jpg (12.96 KiB) Viewed 899 times
or better prevent having to rename by not naming a new clip "clip1-right"
but optionally name it incremental or by the name of the new clips top layer


and it took a while to figure out what the steps i had to take should be.
I did it using V11.7.4 because clip splitting in 12 resulted in multiple crashes.

I think Lucas Sketchpanel command :
Clipboard_05-17-2025_01lukas.jpg
Clipboard_05-17-2025_01lukas.jpg (5.86 KiB) Viewed 899 times
Should be integrated into the project view and also as a command in the clip menu