Hello Takagi san, what do you think of the recent fixes ?Hironori Takagi wrote: ↑03 Oct 2022, 05:45 i will wait for the update.
I received an inquiry from a Japanese user, so please take care of it.
TVPaint 11.7.0 operation check
Re: TVPaint 11.7.0 operation check
- Hironori Takagi
- Posts: 313
- Joined: 14 May 2018, 10:15
- Location: Tokyo, Japan
- Contact:
Re: TVPaint 11.7.0 operation check
2 things I requestedXavier wrote: ↑11 Oct 2022, 13:30Hello Takagi san, what do you think of the recent fixes ?Hironori Takagi wrote: ↑03 Oct 2022, 05:45 i will wait for the update.
I received an inquiry from a Japanese user, so please take care of it.
(Lack of selection mode shortcuts, tv_ClipSaveStructure issues)
Confirmed the solution.
Currently, all custom panels that use tv_ClipInfo have stopped working (" " is added to clipNameValue), so I'm considering a solution.
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
Re: TVPaint 11.7.0 operation check
There will be more, soonHironori Takagi wrote: ↑13 Oct 2022, 04:422 things I requestedXavier wrote: ↑11 Oct 2022, 13:30Hello Takagi san, what do you think of the recent fixes ?Hironori Takagi wrote: ↑03 Oct 2022, 05:45 i will wait for the update.
I received an inquiry from a Japanese user, so please take care of it.
(Lack of selection mode shortcuts, tv_ClipSaveStructure issues)
Confirmed the solution.
Currently, all custom panels that use tv_ClipInfo have stopped working (" " is added to clipNameValue), so I'm considering a solution.
- Hironori Takagi
- Posts: 313
- Joined: 14 May 2018, 10:15
- Location: Tokyo, Japan
- Contact:
Re: TVPaint 11.7.0 operation check
Please let me know if additional updates are possible in the next minor version upgrade.
(5)Getting and setting dpi settings in George
I have created a panel that lists project information in text and images with the script I was provided,
but I'd like to automate the "return dpi after entering dimensions" function.
I will attach the explanatory image and the panel. The panel works up to 11.5.x.
(5)Getting and setting dpi settings in George
I have created a panel that lists project information in text and images with the script I was provided,
but I'd like to automate the "return dpi after entering dimensions" function.
I will attach the explanatory image and the panel. The panel works up to 11.5.x.
- Attachments
-
- CountMarks_200901.tvpx
- (88 KiB) Downloaded 390 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
Re: TVPaint 11.7.0 operation check
Yes, you're right there should be a way to get the dpi value using the George functions. I would rather update tv_projectinfo than tv_camerainfo, what do you think ?Hironori Takagi wrote: ↑17 Oct 2022, 06:35 Please let me know if additional updates are possible in the next minor version upgrade.
(5)Getting and setting dpi settings in George
q106.png
I have created a panel that lists project information in text and images with the script I was provided,
but I'd like to automate the "return dpi after entering dimensions" function.
I will attach the explanatory image and the panel. The panel works up to 11.5.x.
Re: TVPaint 11.7.0 operation check
Sorry, for compatibility with the existing user scripts I cannot change the return values of the function. I will add another function tv_projectinfodpi which will return only the DPI value.
- Hironori Takagi
- Posts: 313
- Joined: 14 May 2018, 10:15
- Location: Tokyo, Japan
- Contact:
Re: TVPaint 11.7.0 operation check
I think it's fine to deal with that.
When changing the dpi, it is desirable to have an instruction to change only the dpi while maintaining the size and a function to change the image size according to the dpi at the same time.
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
Re: TVPaint 11.7.0 operation check
Indeed, I wouldn't disagree ... yet this can be achieved via the menu "Modify Project". So I'll add a task to our list and this will be done in a further version.Hironori Takagi wrote: ↑18 Oct 2022, 09:05 When changing the dpi, it is desirable to have an instruction to change only the dpi while maintaining the size and a function to change the image size according to the dpi at the same time.
- Hironori Takagi
- Posts: 313
- Joined: 14 May 2018, 10:15
- Location: Tokyo, Japan
- Contact:
Re: TVPaint 11.7.0 operation check
Xavier,Xavier wrote: ↑18 Oct 2022, 12:18Indeed, I wouldn't disagree ... yet this can be achieved via the menu "Modify Project". So I'll add a task to our list and this will be done in a further version.Hironori Takagi wrote: ↑18 Oct 2022, 09:05 When changing the dpi, it is desirable to have an instruction to change only the dpi while maintaining the size and a function to change the image size according to the dpi at the same time.
I am attaching the panel I am currently using to resize as a persuasive material for you. what we are doing
・Resolution change (most case is to reduce key-animation 200dpi/297mm×210mm to inbetween-animation 150dpi/297mm×210mm)
・If it becomes an odd number pixels when changing the resolution, crop 1 pixel to the right or bottom.
(so that the center point does not become x.5 in After Effects)
It is to allow the staff to perform this action with the push of a button. You can see that it ends instantly compared to the resize in project settings and crop tool.
The reason why it is necessary to reduce the size from key animation to inbetween animation is that there are special circumstances such as Japanese paint tools and 3DCG, and it will take a little longer to explain all of this.
- Attachments
-
- ResizeProject_211222.tvpx
- (66 KiB) Downloaded 393 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
Re: TVPaint 11.7.0 operation check
DoneHironori Takagi wrote: ↑18 Oct 2022, 09:05 When changing the dpi, it is desirable to have an instruction to change only the dpi while maintaining the size
Regarding this, I would need more info. What would you like to do ?Hironori Takagi wrote: ↑18 Oct 2022, 09:05 and a function to change the image size according to the dpi at the same time.
- create a modified project with a new DPI resolution ?
- set the export resolution to a scaled size depending on the DPI ?
- Hironori Takagi
- Posts: 313
- Joined: 14 May 2018, 10:15
- Location: Tokyo, Japan
- Contact:
Re: TVPaint 11.7.0 operation check
There are two possible actions that the Japanese staff would like to perform.Xavier wrote: ↑20 Oct 2022, 14:32DoneHironori Takagi wrote: ↑18 Oct 2022, 09:05 When changing the dpi, it is desirable to have an instruction to change only the dpi while maintaining the size
Regarding this, I would need more info. What would you like to do ?Hironori Takagi wrote: ↑18 Oct 2022, 09:05 and a function to change the image size according to the dpi at the same time.
- create a modified project with a new DPI resolution ?
- set the export resolution to a scaled size depending on the DPI ?
a) 2338 x 1654 pixels/dpi unset image (e.g. ".tga") is imported, set to 200 dpi without changing the image size and export to jpeg, png, etc.
→ Printable on ISO 216 A4 paper(297×210mm) with scale fit.
b) Downscale to 150 dpi (1754 x 1240 pixels) on the project that loaded the image of 2338 x 1654 pixels/200 dpi
Appropriate size for original drawing → Downscale to a size suitable for painting with RETAS STUDIO PaintMan, an old paint application with almost 100% share in Japan.
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
Re: TVPaint 11.7.0 operation check
Thanks, it helped me to understand. So this command will actually create a copy of the current project, like the "Modify project" menu.Hironori Takagi wrote: ↑21 Oct 2022, 08:56 b) Downscale to 150 dpi (1754 x 1240 pixels) on the project that loaded the image of 2338 x 1654 pixels/200 dpi
Appropriate size for original drawing → Downscale to a size suitable for painting with RETAS STUDIO PaintMan, an old paint application with almost 100% share in Japan.
Re: TVPaint 11.7.0 operation check
So the final syntax will be :
Both tv_projectsetdpi and tv_projectrescaledpi will return the modified project ID, or null if error.
Furthermore, tv_projectrescaledpi will create a modified project without touching the current project.
There will be a warning dialog if the rescaled project is too big for TVPaint to deal with : in some cases a high DPI value may cause TVPaint to use a lot of resources and even crash. For instance if you rescale a 1920x1080, 72dpi project to 720dpi, your project will end up being rescaled to 19200x10800... which is quite huge.
- tv_projectgetdpi [projectId] returns the dpi resolution (use "parse result my_dpi_value")
- tv_projectsetdpi [projectId] dpi_value to set the project resolution value without rescaling the project
- tv_projectrescaledpi [projectId] dpi_value to rescale the project to a certain dpi resolution
Both tv_projectsetdpi and tv_projectrescaledpi will return the modified project ID, or null if error.
Furthermore, tv_projectrescaledpi will create a modified project without touching the current project.
There will be a warning dialog if the rescaled project is too big for TVPaint to deal with : in some cases a high DPI value may cause TVPaint to use a lot of resources and even crash. For instance if you rescale a 1920x1080, 72dpi project to 720dpi, your project will end up being rescaled to 19200x10800... which is quite huge.
- Hironori Takagi
- Posts: 313
- Joined: 14 May 2018, 10:15
- Location: Tokyo, Japan
- Contact:
Re: TVPaint 11.7.0 operation check
That's excellent!Xavier wrote: ↑21 Oct 2022, 15:45 So the final syntax will be :
- tv_projectgetdpi [projectId] returns the dpi resolution (use "parse result my_dpi_value")
- tv_projectsetdpi [projectId] dpi_value to set the project resolution value without rescaling the project
The projectId argument is optional, if not provided the operation will apply to the current project.
- tv_projectrescaledpi [projectId] dpi_value to rescale the project to a certain dpi resolution
Both tv_projectsetdpi and tv_projectrescaledpi will return the modified project ID, or null if error.
Furthermore, tv_projectrescaledpi will create a modified project without touching the current project.
There will be a warning dialog if the rescaled project is too big for TVPaint to deal with : in some cases a high DPI value may cause TVPaint to use a lot of resources and even crash. For instance if you rescale a 1920x1080, 72dpi project to 720dpi, your project will end up being rescaled to 19200x10800... which is quite huge.
In the ResizeProject panel, resizing automatically deletes the source project, so I think the new version will do the same.
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
- Hironori Takagi
- Posts: 313
- Joined: 14 May 2018, 10:15
- Location: Tokyo, Japan
- Contact:
Re: TVPaint 11.7.0 operation check
I'm probably the only one who might be having trouble with this, but I'll document the change as it wasn't in the release notes.
・Return value of tv_ClipInfo
"Name" oId "IsCurrent" 0|1 "IsHidden" 0|1 "IsSelected" 0|1 "StoryboardStartFrame" oStoryboardStartFrame "FirstFrame" oFirstFrame "LastFrame" oLastFrame "FrameCount" oFrameCount "MarkIn" oMarkIn "MarkOut" oMarkOut "ColorIdx" oColorIdx
Before TVPaint 11.5.3, the value of "Name" value did not have double quotes, so I put a routine to add double quotes in every custom panel I created that used tv_ClipInfo.
In 11.7.0, the double quotes were added automatically, so I'm having problems with my panels not working, so I'm currently rewriting all the panels that use tv_ClipInfo.
Currently, we are switching to the process of inserting if the ClipName Value does not have double quotes so that it will work in both 11.7.0 and later and 11.5.3 and earlier.
・Return value of tv_ClipInfo
"Name" oId "IsCurrent" 0|1 "IsHidden" 0|1 "IsSelected" 0|1 "StoryboardStartFrame" oStoryboardStartFrame "FirstFrame" oFirstFrame "LastFrame" oLastFrame "FrameCount" oFrameCount "MarkIn" oMarkIn "MarkOut" oMarkOut "ColorIdx" oColorIdx
Before TVPaint 11.5.3, the value of "Name" value did not have double quotes, so I put a routine to add double quotes in every custom panel I created that used tv_ClipInfo.
In 11.7.0, the double quotes were added automatically, so I'm having problems with my panels not working, so I'm currently rewriting all the panels that use tv_ClipInfo.
Currently, we are switching to the process of inserting if the ClipName Value does not have double quotes so that it will work in both 11.7.0 and later and 11.5.3 and earlier.
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