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: 170
Joined: 26 Sep 2013, 12:01

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

Post by TheQuestionMark » 25 Jun 2019, 07:35

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.0.8 (64-Bit)

User avatar
Hironori Takagi
Posts: 51
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 » 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
TVPaint 11.0.9, Windows10 Pro, DELL Precision M3800 / Mac OS 10.14, Apple Mac Pro(Late 2013)

TheQuestionMark
Posts: 170
Joined: 26 Sep 2013, 12:01

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

Post by TheQuestionMark » 25 Jun 2019, 11:07

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.0.8 (64-Bit)

TheQuestionMark
Posts: 170
Joined: 26 Sep 2013, 12:01

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

Post by TheQuestionMark » 25 Jun 2019, 12:39

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.0.8 (64-Bit)

User avatar
Hironori Takagi
Posts: 51
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 » 25 Jun 2019, 13:04

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.0.9, Windows10 Pro, DELL Precision M3800 / Mac OS 10.14, Apple Mac Pro(Late 2013)

Post Reply