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?
thanks, Sven
George Command to set (and/or read) Filling Shape parameters
Re: George Command to set (and/or read) Filling Shape parame
You can use
to read most of the parameters and
to set them.
some of the parameters is not read/written though.
-Mads
Code: Select all
tv_setActiveShape flood backup
properties = result
Code: Select all
tv_setActiveShape properties
some of the parameters is not read/written though.
-Mads
Re: George Command to set (and/or read) Filling Shape parame
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
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
+1 !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
...
Re: George Command to set (and/or read) Filling Shape parame
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
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
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
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
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
Sounds cool.
I think as well we should be able to read the fill property with tv_areaInit backup
-Mads
I think as well we should be able to read the fill property with tv_areaInit backup
-Mads