V21.01 Scripting

Hier diskutieren die Betatester von PhotoLine untereinander und mit den Entwicklern
PhilM
Mitglied
Posts: 39
Joined: Thu 28 May 2015 18:00
Location: Belgium

V21.01 Scripting

Post by PhilM » Fri 12 Oct 2018 14:02

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
Posts: 3205
Joined: Tue 19 Nov 2002 15:49

Re: V21.01 Scripting

Post by Martin Huber » Fri 12 Oct 2018 16:03

PhilM wrote:
Fri 12 Oct 2018 14:02
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.
Yes, you are right: The gradient type is not adopted correctly. I will fix that.
PhilM wrote:
Fri 12 Oct 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
Posts: 39
Joined: Thu 28 May 2015 18:00
Location: Belgium

Re: V21.01 Scripting

Post by PhilM » Fri 12 Oct 2018 16:32

Great.

Thanks Martin

Philippe