What are the George Scripts to Change Hue,Saturation,and Luminosity in Certain Increments? Topic is solved

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
TheQuestionMark
Posts: 267
Joined: 26 Sep 2013, 12:01

What are the George Scripts to Change Hue,Saturation,and Luminosity in Certain Increments?

Post by TheQuestionMark »

Are there George Scripts to change certain amount Hue,Saturation,and Luminosity in Amount Certain Increments? Like by 5,2,10, or by 20 each time you press a key? Please Help. I wish there was script/program log so you can have easier time to write scripts. I see it the in Add Actions to increase to decrease but it's only one at a time I want it in amounts.
Windows 10 64-Bit TvPaint Professional 11.5.3 (64-Bit)
User avatar
Hironori Takagi
Posts: 313
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

Re: What are the George Scripts to Change Hue,Saturation,and Luminosity in Certain Increments?

Post by Hironori Takagi »

I think that I will make more than one based on the following.
I think that it is not efficient because it will use many hotkeys depending on the case.

// H+5 command
tv_getapen "hsl"
PARSE result index iH iS iL
iH = iH + 5 // change each param
IF iH >= 360 // iS,iL change 255
iH = iH -360 // iS,iL change 255
END
tv_setapen "hsl" iH iS iL
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
TheQuestionMark
Posts: 267
Joined: 26 Sep 2013, 12:01

Re: What are the George Scripts to Change Hue,Saturation,and Luminosity in Certain Increments?

Post by TheQuestionMark »

Hironori Takagi wrote: 25 Jun 2019, 09:22 I think that I will make more than one based on the following.
I think that it is not efficient because it will use many hotkeys depending on the case.

// H+5 command
tv_getapen "hsl"
PARSE result index iH iS iL
iH = iH + 5 // change each param
IF iH >= 360 // iS,iL change 255
iH = iH -360 // iS,iL change 255
END
tv_setapen "hsl" iH iS iL

Wow! How did you learn that? I don't see that anywhere in TVPaint Wiki.
I have Macro Keyboard so I still have plenty of keys left.
Windows 10 64-Bit TvPaint Professional 11.5.3 (64-Bit)
TheQuestionMark
Posts: 267
Joined: 26 Sep 2013, 12:01

Re: What are the George Scripts to Change Hue,Saturation,and Luminosity in Certain Increments?

Post by TheQuestionMark »

Hironori Takagi wrote: 25 Jun 2019, 09:22 I think that I will make more than one based on the following.
I think that it is not efficient because it will use many hotkeys depending on the case.

// H+5 command
tv_getapen "hsl"
PARSE result index iH iS iL
iH = iH + 5 // change each param
IF iH >= 360 // iS,iL change 255
iH = iH -360 // iS,iL change 255
END
tv_setapen "hsl" iH iS iL
Hmmmm for Hue it seems it doesn't rotate clockwise "fully" when you set it to negative interger.

tv_getapen "hsl"
PARSE result index iH iS iL
iH = iH -15 // change each param
IF iH >= 360 // iS,iL change 255
iH = iH -360 // iS,iL change 255
END
tv_setapen "hsl" iH iS iL
Windows 10 64-Bit TvPaint Professional 11.5.3 (64-Bit)
User avatar
Hironori Takagi
Posts: 313
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

Re: What are the George Scripts to Change Hue,Saturation,and Luminosity in Certain Increments?

Post by Hironori Takagi »

Excuse me, please add the following.

IF iH < 0
iH = iH + 360 // iS,iL change 255
END

See the post below for the George command.
I learned here the command I didn't even know.

[Documentation for all george commands]
viewtopic.php?f=34&t=12087
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