Page 1 of 1

Export clips to TVP projects

Posted: 04 Mar 2024, 07:16
by Joost
Hi!

Is it possible to export every single clips in my "project" tab so they become separate TVPaint projects (and it would be even better if every project would be saved in de separate folder).
Screenshot 2024-03-04 at 08.14.37.png
Screenshot 2024-03-04 at 08.14.37.png (73.22 KiB) Viewed 1618 times

For example: See this image. They are all called "shot 01", "shot 02" and so on. I would like to have these shot as a separate TVP file in a folder with the same name and it would be really helpful if this could be automated.


Thanks!


Joost

Re: Export clips to TVP projects

Posted: 04 Mar 2024, 10:13
by Hironori Takagi
I created it using Clips To Projects in Handy Custom Panel.
What do you think?

Re: Export clips to TVP projects

Posted: 04 Mar 2024, 10:25
by Joost
Wow! this is exactly what I meant!

Thanks you so much!


Best,

Joost

Re: Export clips to TVP projects

Posted: 04 Mar 2024, 10:35
by Peter Wassink
Thank You Hironori San!

i asked for the exact same thing about a year ago.
https://forum.tvpaint.com/viewtopic.php ... ts#p132808

I believe this function "Export clip as project" should be integrated in the project menu. or be available in the main clip menu.
But project view maybe makes more sense as you can select the clips you need to save.




i do ran into an issue with the script.

if i run it i get the warning "プロジェクトを保存してから実行して下さい Please save project."
but when i save the project and try again i still get the warning?
something to do with a period in the project name? i don't understand

Re: Export clips to TVP projects

Posted: 04 Mar 2024, 11:24
by slowtiger
Often repeated warning: avoid anything outside 7bit ASCII in file and path names. So it's A-Za-z0-9_ only.

Re: Export clips to TVP projects

Posted: 04 Mar 2024, 11:52
by Joost
Peter Wassink wrote: 04 Mar 2024, 10:35
I believe this function "Export clip as project" should be integrated in the project menu. or be available in the main clip menu.
But project view maybe makes more sense as you can select the clips you need to save.

I agree that it should be integrated!

A couple of things I thought about (If it would be implemented)
-It would be handy if it asked where to save the files
-Have the ability to save each created file in a sub-folder (with the same name)
-Maybe it would be better if it not automatically opened every file
-And there should be a good method of giving each clip a logical number without renaming every clip by hand

Re: Export clips to TVP projects

Posted: 04 Mar 2024, 15:18
by Peter Wassink
Joost wrote: 04 Mar 2024, 11:52 A couple of things I thought about (If it would be implemented)
-It would be handy if it asked where to save the files
-Have the ability to save each created file in a sub-folder (with the same name)
-Maybe it would be better if it not automatically opened every file
-And there should be a good method of giving each clip a logical number without renaming every clip by hand
I agree with all of these.

this topic has been addressed multiple times
https://forum.tvpaint.com/viewtopic.php ... 49#p131749

i can only conclude this needs some attention from the development team, its clear this important functionality is lacking.

meanwhile here is the direct link to the custom panel patch: https://www.tvpaint.com/forum/viewtopic ... 03&p=47609

Re: Export clips to TVP projects

Posted: 05 Mar 2024, 01:54
by Hironori Takagi
Peter Wassink wrote: 04 Mar 2024, 10:35 i do ran into an issue with the script.

if i run it i get the warning "プロジェクトを保存してから実行して下さい Please save project."
but when i save the project and try again i still get the warning?
something to do with a period in the project name? i don't understand
This program checks exist periods in the file path to avoid running it on unsaved projects.
It should be cleared if ".tvpp" exists, but if there is a space in the middle of the project name, it may not work due to George's rules.

Re: Export clips to TVP projects

Posted: 05 Mar 2024, 12:57
by Peter Wassink
Turned out it was a simple copy/paste mistake.
i omitted the first line of the grg script :roll:

It works now. Thanks!

Re: Export clips to TVP projects

Posted: 05 Mar 2024, 16:09
by D.T. Nethery
Peter Wassink wrote: 05 Mar 2024, 12:57 Turned out it was a simple copy/paste mistake.
i omitted the first line of the grg script :roll:

It works now. Thanks!

Thank you Hironari Takagi for this very useful script.

Thanks to Peter for putting it into a custom panel .tvpx file.

Re: Export clips to TVP projects

Posted: 10 Apr 2024, 14:49
by Lukas
I reworked it a little bit for our pipeline. My version is in my panel: https://github.com/lukaskrepel/TVP-Lukas-Sketch-Panel make sure you update to the latest version.

Read the Suggested folder structure for projects part of the readme if you're interested in using it too. There's a "Clips to TVPaint Projects" button to go from STB to Folder structure with a file per clip. And a "Render to 'Renders' Folder" button that renders a shot as image sequence into the correct folder each time. It saves a *lot* of time, as the default Export window is a often hassle to work with imo.