Page 1 of 1
George Command to set (and/or read) Filling Shape parameters
Posted: 20 Mar 2012, 16:08
by Svengali
Is there a George command that will let you set and/or read the Filling Shape parameters?
If not, it could be very useful for managing scripted filling operations. Please consider such a command to manage the following parameters for the next release?
- FillingShapeParameters.jpg (19.5 KiB) Viewed 17121 times
thanks, Sven
Re: George Command to set (and/or read) Filling Shape parame
Posted: 20 Mar 2012, 16:22
by Mads Juul
You can use
Code: Select all
tv_setActiveShape flood backup
properties = result
to read most of the parameters and
to set them.
some of the parameters is not read/written though.
-Mads
Re: George Command to set (and/or read) Filling Shape parame
Posted: 20 Mar 2012, 18:06
by Svengali
Thanks Mads,
I guess I should have been more exact. The critical FloodFill, Filling Shape properties that I can't access or set are as follows:
Source: with four options - Layer, Above, Below, Display (all useful in their own way)
Fill: with five options - Color & Density, Color Only, Density Only, B Color, Luma
Gap Closer: numeric value
Expand: numeric value
Range: numeric value
AutoPicker: a check box (on or off)
Perhaps a new pair of commands: tv_GetFillingShape and tv_SetFillingShape as in:
tv_GetFillingShape
parse result xSource xFill xGap xExpand xRange xAutoPicker
As you say, all the other important FloodFill settings can be read and written using tv_GetActiveShape and tv_SetActiveShape.
Sven
Re: George Command to set (and/or read) Filling Shape parame
Posted: 26 Mar 2012, 23:50
by ZigOtto
Svengali wrote:...
Source: with four options - Layer, Above, Below, Display (all useful in their own way)
Fill: with five options - Color & Density, Color Only, Density Only, B Color, Luma
Gap Closer: numeric value
Expand: numeric value
Range: numeric value
AutoPicker: a check box (on or off)
Perhaps a new pair of commands: tv_GetFillingShape and tv_SetFillingShape as in:
tv_GetFillingShape
parse result xSource xFill xGap xExpand xRange xAutoPicker
...
+1 !
Re: George Command to set (and/or read) Filling Shape parame
Posted: 28 Mar 2012, 00:46
by Svengali
An alternative to creating a completely new pair of commands might be to simply extend the existing parameters for the tv_AreaInit command which are:
tv_areainit ["RESET"] ["mode VAL"] ["vector x1 y1 x2 y2"] ["map_xbrush PARAM"] ["map_ybrush PARAM"] ["map_xopacity PARAM"] ["map_yopacity PARAM"] ["map_gradient PARAM"] ["opacity VAL"] ["smooth VAL"] ["aaliasing VAL"]
to include the Filling Shape Parameters as follows:
tv_areainit ["RESET"] ["mode VAL"] ["vector x1 y1 x2 y2"] ["map_xbrush PARAM"] ["map_ybrush PARAM"] ["map_xopacity PARAM"] ["map_yopacity PARAM"] ["map_gradient PARAM"] ["opacity VAL"] ["smooth VAL"] ["aaliasing VAL"] ["source VAL"] ["fill VAL"] ["gap VAL"] ["expand VAL"] ["range VAL"] ["autopicker PARAM"]
Sven
Re: George Command to set (and/or read) Filling Shape parame
Posted: 28 Mar 2012, 04:15
by Mads Juul
Why not add the rest of the parameters to tv_setactiveshape backup? that is where we get the parameters in the first place. Also for the other shapes. So it seems most natural to me.
Re: George Command to set (and/or read) Filling Shape parame
Posted: 28 Mar 2012, 06:11
by Svengali
Mads,
Thank you.
Your response prompted me to have a look at
"AreaInit on the WIKI site" where I discovered that four of the five parameters ARE already there! Only thing missing seems to be the FILL parameter according to the details there.
(It seems my personal documentation on the newer GEORGE commands is slightly out of date).
This means that I can now post the FigFill button and FigureFill.grg script over in your original thread, once I tweak a few lines and test the results. If it all works I'll try to post the FigureFill zipfile later this morning.
A few other scripts I've been waiting on should now also be do-able using this same info.
Sven
Re: George Command to set (and/or read) Filling Shape parame
Posted: 28 Mar 2012, 06:27
by Mads Juul
Sounds cool.
I think as well we should be able to read the fill property with tv_areaInit backup
-Mads