TVPaint Home Update TVP Animation TVPaint Gallery Tutorials F.A.Q. Newsletter

George Command to set (and/or read) Filling Shape parameters

This section is dedicated to the feature requests regarding TVP Animation and TVP Animation Pro

George Command to set (and/or read) Filling Shape parameters

Postby Svengali » Tue Mar 20, 2012 6:08 pm

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
FillingShapeParameters.jpg (19.5 KiB) Viewed 785 times
thanks, Sven
Svengali
 
Posts: 537
Joined: Thu Dec 28, 2006 12:08 pm

Re: George Command to set (and/or read) Filling Shape parame

Postby madsjuul » Tue Mar 20, 2012 6:22 pm

You can use
Code: Select all
tv_setActiveShape flood backup
properties = result

to read most of the parameters and
Code: Select all
tv_setActiveShape properties

to set them.

some of the parameters is not read/written though.
-Mads
Mads Juul
blog: http://madsjuul.blogspot.com/
Mail: madsjuulanimation@gmail .com
Windows 8, 64 bit and Android 4.1.2 (Samsung Galaxy Note 10.1)
TVPaint 10.0.18, professional, 32 bit and 64 bit
User avatar
madsjuul
 
Posts: 2690
Joined: Wed May 02, 2007 9:18 pm
Location: Viborg,Denmark

Re: George Command to set (and/or read) Filling Shape parame

Postby Svengali » Tue Mar 20, 2012 8:06 pm

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
Svengali
 
Posts: 537
Joined: Thu Dec 28, 2006 12:08 pm

Re: George Command to set (and/or read) Filling Shape parame

Postby ZigOtto » Tue Mar 27, 2012 1:50 am

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 ! :wink:
User avatar
ZigOtto
 
Posts: 3720
Joined: Sat Feb 18, 2006 12:50 am
Location: south-Petazonia

Re: George Command to set (and/or read) Filling Shape parame

Postby Svengali » Wed Mar 28, 2012 2:46 am

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
Svengali
 
Posts: 537
Joined: Thu Dec 28, 2006 12:08 pm

Re: George Command to set (and/or read) Filling Shape parame

Postby madsjuul » Wed Mar 28, 2012 6:15 am

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.
Mads Juul
blog: http://madsjuul.blogspot.com/
Mail: madsjuulanimation@gmail .com
Windows 8, 64 bit and Android 4.1.2 (Samsung Galaxy Note 10.1)
TVPaint 10.0.18, professional, 32 bit and 64 bit
User avatar
madsjuul
 
Posts: 2690
Joined: Wed May 02, 2007 9:18 pm
Location: Viborg,Denmark

Re: George Command to set (and/or read) Filling Shape parame

Postby Svengali » Wed Mar 28, 2012 8:11 am

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
Svengali
 
Posts: 537
Joined: Thu Dec 28, 2006 12:08 pm

Re: George Command to set (and/or read) Filling Shape parame

Postby madsjuul » Wed Mar 28, 2012 8:27 am

Sounds cool.
I think as well we should be able to read the fill property with tv_areaInit backup
-Mads
Mads Juul
blog: http://madsjuul.blogspot.com/
Mail: madsjuulanimation@gmail .com
Windows 8, 64 bit and Android 4.1.2 (Samsung Galaxy Note 10.1)
TVPaint 10.0.18, professional, 32 bit and 64 bit
User avatar
madsjuul
 
Posts: 2690
Joined: Wed May 02, 2007 9:18 pm
Location: Viborg,Denmark


Return to Feature requests

Who is online

Users browsing this forum: No registered users and 1 guest