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
V21.01 Scripting
-
- Entwickler
- Beiträge: 4159
- Registriert: Di 19 Nov 2002 15:49
Re: V21.01 Scripting
Yes, you are right: The gradient type is not adopted correctly. I will fix that.
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.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 ?
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
Re: V21.01 Scripting
Great.
Thanks Martin
Philippe
Thanks Martin
Philippe