tv_LayerMove issue

A forum dedicated to George scripting questions
Post Reply
User avatar
Hironori Takagi
Posts: 313
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

tv_LayerMove issue

Post by Hironori Takagi »

I'm thinking about making a panel I created previously called "LayersChange" compatible with Ver.12.
It seems that tv_LayerMove can "move outside a folder," but not "put inside a folder."
Is there any way to do this?
Attachments
LayersChangeDown_181113.grg
(4.54 KiB) Downloaded 120 times
LayersChangeUp_181113.grg
(4.49 KiB) Downloaded 123 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
Hironori Takagi
Posts: 313
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

Re: tv_LayerMove issue

Post by Hironori Takagi »

As for tv_LayerDuplicate, if you run it on a layer inside a folder, it seems to be created outside the folder rather than just below it.
Please check this as well.
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
Thierry
Site Admin
Posts: 2780
Joined: 07 Jan 2013, 08:28

Re: tv_LayerMove issue

Post by Thierry »

Hironori Takagi wrote: 26 Sep 2024, 09:16I'm thinking about making a panel I created previously called "LayersChange" compatible with Ver.12.
It seems that tv_LayerMove can "move outside a folder," but not "put inside a folder."
Is there any way to do this?
If you move a layer between two layers that are in a folder, it will be put in that folder.
But I agree that this should be easier.
After discussing with Kévin, we'll add a folder ID as an optional parameter to tv_LayerMove. If that ID is present, the command will put the layer in that folder.
User avatar
Thierry
Site Admin
Posts: 2780
Joined: 07 Jan 2013, 08:28

Re: tv_LayerMove issue

Post by Thierry »

Hironori Takagi wrote: 27 Sep 2024, 05:53 As for tv_LayerDuplicate, if you run it on a layer inside a folder, it seems to be created outside the folder rather than just below it.
Please check this as well.
We've confirmed that today as well.
User avatar
Hironori Takagi
Posts: 313
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

Re: tv_LayerMove issue

Post by Hironori Takagi »

Thank you for considering this issue.
I look forward to your continued support.
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