V21.01 Scripting

Hier diskutieren die Betatester von PhotoLine untereinander und mit den Entwicklern
Antworten
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

V21.01 Scripting

Beitrag von PhilM »

Hello,

I tested the example script "AdjustmentWithGradient.vbs" and change the gradient type to "1", I still got a linear gradient instead or a circular one.

"Set gradientDic = CreateObject("PhotoLine.Dictionary")
gradientDic.Add "Type", 0, "Colors", Array(Array(0, 0, 0), Array(1, 1, 1)), "Stops", Array(0, 1), "Points", Array(0.5, 0, 0.5, 1)"
changed to :
"gradientDic.Add "Type", 1, "Colors", Array(Array(0, 0, 0), Array(1, 1, 1)), "Stops", Array(0, 1), "Points", Array(0.5, 0, 0.5, 1)"

And then, how do I specify the second axis of the gradient to make it elliptical ?

Best regards.

Philippe
Martin Huber
Entwickler
Entwickler
Beiträge: 4158
Registriert: Di 19 Nov 2002 15:49

Re: V21.01 Scripting

Beitrag von Martin Huber »

PhilM hat geschrieben: Fr 12 Okt 2018 14:02I tested the example script "AdjustmentWithGradient.vbs" and change the gradient type to "1", I still got a linear gradient instead or a circular one.
Yes, you are right: The gradient type is not adopted correctly. I will fix that.
PhilM hat geschrieben: Fr 12 Okt 2018 14:02"Set gradientDic = CreateObject("PhotoLine.Dictionary")
gradientDic.Add "Type", 0, "Colors", Array(Array(0, 0, 0), Array(1, 1, 1)), "Stops", Array(0, 1), "Points", Array(0.5, 0, 0.5, 1)"
changed to :
"gradientDic.Add "Type", 1, "Colors", Array(Array(0, 0, 0), Array(1, 1, 1)), "Stops", Array(0, 1), "Points", Array(0.5, 0, 0.5, 1)"

And then, how do I specify the second axis of the gradient to make it elliptical ?
Currently you can do that only by using a color ("PhotoLine.Color") instead of a gradient dictionary. This allows you to set a color transformation matrix via the Matrix property.
Since creating a color is significantly more complex, I will add a "Scale" key to the gradient dictionary that will allow this in a simple way.

Martin
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: V21.01 Scripting

Beitrag von PhilM »

Great.

Thanks Martin

Philippe
Antworten