Page 1 of 1
What are the George Scripts to Change Hue,Saturation,and Luminosity in Certain Increments?
Posted: 25 Jun 2019, 07:35
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.
Re: What are the George Scripts to Change Hue,Saturation,and Luminosity in Certain Increments?
Posted: 25 Jun 2019, 09:22
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
Re: What are the George Scripts to Change Hue,Saturation,and Luminosity in Certain Increments?
Posted: 25 Jun 2019, 11:07
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.
Re: What are the George Scripts to Change Hue,Saturation,and Luminosity in Certain Increments?
Posted: 25 Jun 2019, 12:39
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
Re: What are the George Scripts to Change Hue,Saturation,and Luminosity in Certain Increments?
Posted: 25 Jun 2019, 13:04
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