Page 1 of 1

Import image sequences with gaps on one layer

Posted: 21 Jun 2024, 23:08
by Jeremy Richard
To be able to import image sequences with gaps in the numbering, on one track, as previously asked here.

Sometimes I'll do a CGI previsualisation in which I just export specific frames, creating a sequence where I might jump from 1 to 50 then 120.

And so to be able to import those previsualisation images on one layer, which I could then place at the right frame manually, could be useful in that case, I think.

At the moment, I import each image individually at the right position in the timeline, and then I merge all the imported images as one track.

Re: Import image sequences with gaps on one layer

Posted: 04 Jul 2024, 14:05
by Jeremy Richard
This panel by Hironori Takagi actually imports image sequences with gaps and puts it onto one layer:
Hironori Takagi wrote: 22 Jan 2020, 06:18 I rewrote a part of the ImportFolder script and tried to make it a panel.
Please check it.

ImportFiles_200122.tvpx
Here is a demonstration of the panel:
ImportFiles_panel_by_Hironori_Takagi.mp4
(1.57 MiB) Downloaded 112 times

Here is the original post: viewtopic.php?p=117181#p117181

-------------------------------------------------------------------------------------------------------------

EDIT from the 10th of July 2024
Hironori Takagi wrote: 10 Jul 2024, 02:42 This import sample is not a good example because there is a period before the number.
It won't place the imported images to their corresponding frame on the timeline if there is a period before the number in the file name (ex: MyAnimation.002.png).

But the panel will place the imported images to their corresponding frame on the timeline (as intended) if, before the number, there is either:
  • a hyphen (ex: MyAnimation-002.png)
  • an underscore (ex: MyAnimation_002.png)
  • nothing (ex: MyAnimation002.png)

Re: Import image sequences with gaps on one layer

Posted: 05 Jul 2024, 14:29
by D.T. Nethery
It is a useful script , but what would be even better is if TVPaint would import the image sequence with gaps in the numbering and place each image at the frame which corresponds to the image number, so you would not have to place each image at the correct frame manually

Screen Shot 2024-07-05 at 10.13.54 AM.jpg
Screen Shot 2024-07-05 at 10.13.54 AM.jpg (71.42 KiB) Viewed 3089 times

Therefore, in an image sequence numbered 0001 , 0016, 0025, 0050 , 0078, 0144, 0178, 0275, 0442 the script would import those numbered image files into TVPaint and place them at the correct frame numbers on the timeline: 1, 16, 25, 50, 78, 144, 275, 442.

Screen Shot 2024-07-05 at 10.22.01 AM.jpg

Right now the only way to do that if I'm importing an image sequence with gaps in the numbering (say importing a sequence of key drawings made in another animation program such as Clip Studio Paint) is to export from the other program as a .MOV file (RGBA mode, with transparent alpha channel) , then import the .MOV file into TVPaint. This places each image at it's assigned frame number.

Re: Import image sequences with gaps on one layer

Posted: 06 Jul 2024, 10:46
by Peter Wassink
The Tvpaint converter
Could be a logic spot for a tool that could convert a range of numbered images into a tvpaint project containing layer(s) with instances that are spaced according to their frame number.

Re: Import image sequences with gaps on one layer

Posted: 10 Jul 2024, 02:42
by Hironori Takagi
This import sample is not a good example because there is a period before the number.
As far as I remember, if there wasn't a period before the number, the ImportFiles were placed at the appropriate number on the timeline.
(This is a good example of artists doing things that engineers wouldn't expect.)

Re: Import image sequences with gaps on one layer

Posted: 10 Jul 2024, 10:56
by Jeremy Richard
Hironori Takagi wrote: 10 Jul 2024, 02:42 This import sample is not a good example because there is a period before the number.
Indeed!

It works fine when, before the number, there is either:
  • a hyphen (ex: MyAnimation-002.png)
  • an underscore (ex: MyAnimation_002.png)
  • nothing (ex: MyAnimation002.png)
Thank you Hironori for sharing this panel.

Re: Import image sequences with gaps on one layer

Posted: 10 Jul 2024, 13:53
by D.T. Nethery
Jeremy Richard wrote: 10 Jul 2024, 10:56
Hironori Takagi wrote: 10 Jul 2024, 02:42 This import sample is not a good example because there is a period before the number.
Indeed!

It works fine when, before the number, there is either:
  • a hyphen (ex: MyAnimation-002.png)
  • an underscore (ex: MyAnimation_002.png)
  • nothing (ex: MyAnimation002.png)
Thank you Hironori for sharing this panel.
This is good to know it is working for you now. I did not notice in the screenshot in your original post that there was the extra . before the number.

Anyway, I still think that the same function of Hironori Takagi's custom panel should be built-in to TVPaint when importing an image sequence which has gaps in the numbering sequence,
so this Feature Request is a good one:

When importing an image sequence with gaps in the numbering (for example A_001.jpg , A_005.jpg , A_009.jpg , A_015.jpg , A_021.jpg, A_035.jpg, A_043.jpg, etc.) TVPaint should place the imported images on the same layer in the timeline and place each image at the corresponding frame on the timeline.

Screen Shot 2024-07-10 at 10.11.13 AM.jpg
.