Page 1 of 1

JSON script - Export to After Effects naming pattern

Posted: 31 Oct 2018, 18:44
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 18234 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.

.

Re: JSON script - Export to After Effects naming pattern

Posted: 01 Nov 2018, 03:09
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.

Re: JSON script - Export to After Effects naming pattern

Posted: 01 Nov 2018, 15:06
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.)

Re: JSON script - Export to After Effects naming pattern

Posted: 02 Nov 2018, 03:36
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.

Re: JSON script - Export to After Effects naming pattern

Posted: 06 Nov 2018, 14:27
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 ?)

Re: JSON script - Export to After Effects naming pattern

Posted: 07 Nov 2018, 05:42
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.

Re: JSON script - Export to After Effects naming pattern

Posted: 07 Nov 2018, 09:34
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.

Re: JSON script - Export to After Effects naming pattern

Posted: 07 Nov 2018, 10:56
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.