Import image sequences with gaps on one layer Topic is solved

This section is dedicated to the feature & improvement requests (be sure what you are asking does not exist yet in TVPaint Animation ;) )
Post Reply
User avatar
Jeremy Richard
Posts: 53
Joined: 16 Oct 2021, 01:44
Contact:

Import image sequences with gaps on one layer

Post 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.
User avatar
Jeremy Richard
Posts: 53
Joined: 16 Oct 2021, 01:44
Contact:

Re: Import image sequences with gaps on one layer

Post 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 214 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)
Last edited by Jeremy Richard on 10 Jul 2024, 11:02, edited 1 time in total.
User avatar
D.T. Nethery
Posts: 4225
Joined: 27 Sep 2006, 19:19

Re: Import image sequences with gaps on one layer

Post 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 5035 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.

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
Peter Wassink
Posts: 4436
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: Import image sequences with gaps on one layer

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

Re: Import image sequences with gaps on one layer

Post 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.)
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
Jeremy Richard
Posts: 53
Joined: 16 Oct 2021, 01:44
Contact:

Re: Import image sequences with gaps on one layer

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

Re: Import image sequences with gaps on one layer

Post 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
.

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
Post Reply