Trouble on tv_SetActiveShape "crop" since TVPaint11.7.1

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:

Trouble on tv_SetActiveShape "crop" since TVPaint11.7.1

Post by Hironori Takagi »

When TVPaint 11.7.1 was released, I reported a bug regarding tv_SetActiveShape.
https://forum.tvpaint.com/viewtopic.php ... 55#p132855

This problem was recently reported by the developer,
and it turned out that the reason was that the base point had changed from the top left to the center of the project.

I tried to improve the script in response to this suggestion, but found that tv_SetActiveShape "crop"
cannot be used in cases where the new project has an odd number of pixels because "xxx.5" cannot be specified as the pivot.

In Japanese productions, it is no good to create projects with odd pixels (because problems occur when the pivot is set to "xxx.5" in After Effects).
Therefore, there is no problem with operation with the current specifications, but is there any possibility of changing this behavior?
q116_2.jpg
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: Trouble on tv_SetActiveShape "crop" since TVPaint11.7.1

Post by Hironori Takagi »

https://forum.tvpaint.com/viewtopic.php ... 55#p132855

Since the trouble that caused this issue was reported by the developer,
I have updated the panel "ResizeProject" that integrates project editing and crop tool. I'm posting it on a Japanese user forum, but I'll also share the source file here.
Specifically, we have divided the operations between 11.7.0 and earlier and 11.7.1 and later.
The "odd pixel problem" mentioned in the previous post still exists, so in versions 11.7.1 and later, resizing is forced to even pixels.
Attachments
ResizeProject_231212.grg
(16.04 KiB) Downloaded 177 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
Post Reply