Export Multiple TVPaint files from CMD / George Script.

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
AtoArtworks
Posts: 4
Joined: 26 Feb 2025, 11:07

Export Multiple TVPaint files from CMD / George Script.

Post 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
User avatar
Hironori Takagi
Posts: 324
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

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

Post 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.
Attachments
ExportPNG_usePN_241119.zip
(1.28 KiB) Downloaded 448 times
ExportJsonAuto_241125.tvpx
(543.5 KiB) Downloaded 455 times
TVPaint 11.7.2(Nov 14 2023), Windows11 Pro, HP Spectre x360 Convertible 14-ea0xxx / TVPaint 11.7.1(Dec 22 2022) Mac OS 11.6, Apple MacBookPro M1 2020
AtoArtworks
Posts: 4
Joined: 26 Feb 2025, 11:07

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

Post 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!
User avatar
D.T. Nethery
Posts: 4276
Joined: 27 Sep 2006, 19:19

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

Post 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
Animator, TVPaint Beta-Tester, Animation Educator and Consultant.
TVPaint PRO 11.7.4 - 64bit
MacOS 12.7.1 Monterey ,
Mac Mini (2018) , 3.2 GHz 6-Core Intel Core i7, 16 GB RAM ,
XP-Pen Artist Pro 19 (Gen 2) 4K,
User avatar
Matthieu
Site Admin
Posts: 186
Joined: 11 Jan 2021, 13:10

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

Post 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.
User avatar
D.T. Nethery
Posts: 4276
Joined: 27 Sep 2006, 19:19

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

Post 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)
Animator, TVPaint Beta-Tester, Animation Educator and Consultant.
TVPaint PRO 11.7.4 - 64bit
MacOS 12.7.1 Monterey ,
Mac Mini (2018) , 3.2 GHz 6-Core Intel Core i7, 16 GB RAM ,
XP-Pen Artist Pro 19 (Gen 2) 4K,
User avatar
Peter Wassink
Posts: 4510
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

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

Post 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 850 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 850 times
Should be integrated into the project view and also as a command in the clip menu
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
Post Reply