JSON script - Export to After Effects naming pattern Topic is solved

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
D.T. Nethery
Posts: 4110
Joined: 27 Sep 2006, 19:19

JSON script - Export to After Effects naming pattern

Post by D.T. Nethery »

This tutorial: https://www.youtube.com/watch?v=YayOsWHXQZo is helpful , but it glosses over the Folder Name Pattern options and File Pattern naming options too quickly.
(at 00:53 - to - 1:00) .

It is not clearly explained how to set up the folder names and file names. In actual use I find the Folder Pattern naming and File Pattern naming is very confusing .

The way the Folders and File name structures are set up with naming structures like:

[%3li]%In

or

[%4li]%In

or

%5ii-%08in-

etc.

is not intuitive at all. I look at the tutorial and the page in the user manual , but I still don't really understand what these symbols and numbers mean. I feel stupid. I don't understand which symbols to use to name my folders and files correctly.

Does anyone else have this problem or is it just me ? (I get depressed when software makes me feel stupid ... I can usually figure things out if I stick with it long enough , I'll go through it step by step , over and over until I get the correct results , but I've spent hours trying to figure this out and I still don't understand it.

Can you make a more detailed "cheat sheet" explaining precisely what all the odd little symbols , brackets, % , and numbers mean AND showing why a user would type in a certain pattern of symbols vs. using another pattern of symbols to name the folders and files correctly ?

Just to be sure I was not missing a step, I followed along in the tutorial step by step using the same .tvpp file from Journey to Creativity P_30b.tvpp , with the same settings shown in the tutorial for the folder name pattern and file name pattern (and the same as shown in the user manual)

Folder Name Pattern : [%3li] %In
File Name Pattern : [%4ii] %In

However, the process does not go exactly the same as shown in the tutorial video .

1.) The import script shown in the tutorial is named import-json.jsx . In the tutorial the instructor says that the import-json.jsx file is found in the installation folder for TVPaint 11.0.8 . The import script I have when I download TVPaint 11.0.8 is named AfterEffects Import TVPaint JSON.jsx (created Nov 02 , 2017) .
Is this the correct import script ? Is it the same as import-json.jsx , but with a different file name? (but why is the name of the .jsx script file different from what is shown in the official tutorial video ? This is confusing.)

2.) In the video when the instructor selects the json file , P30_BG02.json , (at video time stamp 4:26) it is shown automatically opening up in After Effects with all the layers arranged in the AE timeline ... but this is not the result that I get when I try to do the same thing. I select the file P30_BG02.json , but then in AE is only shows one folder called p30_BG02 (which is not placed in the timeline) and inside that folder is only the BG and that does not seem to have any image visible . None of the other layers are imported. Clicking on the BG composition doesn't do anything . It appears to be empty .

This what I see in AE after I run the script and select the json file P30_BG02.json -

Screen Shot 2018-10-31 at 12.03.35 PM.jpg
Screen Shot 2018-10-31 at 12.03.35 PM.jpg (38.49 KiB) Viewed 17515 times

Please help . What am I doing wrong ? I have a client who needs my TVPaint files exported to After Effects, but I can't do it. It is not working .
I am using AE 15.1.2 (Build 69)

--------

Addendum:

I searched back through the forum posts to find the TVPaint Export/AE Import scripts by Mads Juul (updated by Duduk) , here:

https://www.tvpaint.com/forum/viewtopic ... 90#p100613

and it works perfectly. All layers come into AE . (but does not have the option to import the Camera from TVPaint, but that is not a huge problem for this current project) .

The updated Mads Juul/Duduk scripts can be downloaded here :

http://duduf.com/downloads/duik/TVPaint-AE.zip


I still look forward to finding out more about the JSON export from TVPaint and what I'm doing wrong , but for the present my crisis (to get these files delivered by the deadline) is over.

.

Animator, TVPaint Beta-Tester, Animation Educator and Consultant.
MacOS 12.7.1 Monterey , Mac Mini (2018) , 3.2 GHz 6-Core Intel Core i7,
16 GB RAM , TVPaint PRO 11.7.1 - 64bit , Wacom Cintiq 21UX 2nd Gen.
,Wacom Intuos Pro 5 , Wacom driver version 6.3.39-1
User avatar
Hironori Takagi
Posts: 277
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

Re: JSON script - Export to After Effects naming pattern

Post by Hironori Takagi »

Hello, D.T.
I pointed out this problem in the Japanese User Forum.

http://forum-jp.tvpaint.com/viewtopic.php?f=7&t=350

You can understand this column to some extent by turning on the tool tip.
In Japan, we always use the following patterns.

Folder: %ln (layer name)
File: %ln%04in (layer name + instance name with 4 digit numbers)

Since it is troublesome to have users set them every time, we also created custom panels that forcibly make this rule.

http://forum-jp.tvpaint.com/viewtopic.php?f=15&t=365

Therefore, there is a choice of "Japan rule" in the import script of after effects.
I'm glad if you can use it as a reference.
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
User avatar
D.T. Nethery
Posts: 4110
Joined: 27 Sep 2006, 19:19

Re: JSON script - Export to After Effects naming pattern

Post by D.T. Nethery »

Hironori Takagi wrote: 01 Nov 2018, 03:09
In Japan, we always use the following patterns.

Folder: %ln (layer name)
File: %ln%04in (layer name + instance name with 4 digit numbers)


Since it is troublesome to have users set them every time, we also created custom panels that forcibly make this rule.

http://forum-jp.tvpaint.com/viewtopic.php?f=15&t=365

Therefore, there is a choice of "Japan rule" in the import script of after effects.
I'm glad if you can use it as a reference.
Thank you ! :D That naming pattern works very well. Now when I import the json file into AE all the layers appear in the AE timeline as expected.

I can not download your custom panels which force the naming pattern of

Folder: %ln (layer name)
File: %ln%04in (layer name + instance name with 4 digit numbers)

because I do not have a registration on the Japanese forum , but if you were to post that custom panel here I would appreciate it.
(this will save time with students at the school where I teach animation. Part of the problem is as you say , it is troublesome to have users
set the naming patterns every time.)

Animator, TVPaint Beta-Tester, Animation Educator and Consultant.
MacOS 12.7.1 Monterey , Mac Mini (2018) , 3.2 GHz 6-Core Intel Core i7,
16 GB RAM , TVPaint PRO 11.7.1 - 64bit , Wacom Cintiq 21UX 2nd Gen.
,Wacom Intuos Pro 5 , Wacom driver version 6.3.39-1
User avatar
Hironori Takagi
Posts: 277
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

Re: JSON script - Export to After Effects naming pattern

Post by Hironori Takagi »

I attach custom panel "ExportJsonAuto".
I confirmed the following problem with TVPaint 11.0.8.
· When you press the export button of TGA, it will be output by PNG

It solves by the following method:
Open the "Format" selection once on the export screen.
181102.jpg
I hope that you will be useful.
Attachments
ExportJsonAuto_180615.tvpx
(218 KiB) Downloaded 820 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
User avatar
D.T. Nethery
Posts: 4110
Joined: 27 Sep 2006, 19:19

Re: JSON script - Export to After Effects naming pattern

Post by D.T. Nethery »

Thank you for the custom panel.

I always use PNG anyway, so that bug would not bother me , but thank you for the workaround method.
(is there an advantage to using TGA files in After Effects instead of PNG ?)

Animator, TVPaint Beta-Tester, Animation Educator and Consultant.
MacOS 12.7.1 Monterey , Mac Mini (2018) , 3.2 GHz 6-Core Intel Core i7,
16 GB RAM , TVPaint PRO 11.7.1 - 64bit , Wacom Cintiq 21UX 2nd Gen.
,Wacom Intuos Pro 5 , Wacom driver version 6.3.39-1
User avatar
Hironori Takagi
Posts: 277
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

Re: JSON script - Export to After Effects naming pattern

Post by Hironori Takagi »

I'm glad to help you.
In Japan, the software called RETAS STUDIO has a large share, and in that workflow TGA · anti-alias OFF · background white is used.
This data format is old specification, but it also has the advantage of being light in operation in After Effects.
Although it may not be worrisome in recent After Effects, PNG has the impression that reading and display are a bit slower than TGA.
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
User avatar
slowtiger
Posts: 2885
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: JSON script - Export to After Effects naming pattern

Post by slowtiger »

Working on Mac, I've noticed that PNG is definitely slower in writing than other formats, in TVP as well as in PS.
TVP 10.0.18 and 11.0 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
TVP 11.0 and 11.7 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
TVP 11.7 Mac Mini M2pro 32GB OS 13.5
User avatar
Hironori Takagi
Posts: 277
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

Re: JSON script - Export to After Effects naming pattern

Post by Hironori Takagi »

Even with the custom panel introduced here, TGA - RGB is an impression that processing is completed much faster than PNG - RGBA.
But, I think TGA is not the best choice because there is concern that it will not be supported in the future.
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
Post Reply