i'm trying to create a button but cannot find all the actions i need.
i need the button to switch off paper (not toggle it because paper could be of or on when i click it)
i need to set the custombrush mode to alpha stamp. but i can only find how to set drawing modes.
finally i need an action that sets the custombrush smooth to best. (could do this via keep but i only need smooth not angle and size etc...)
do these action options exsist and where to find them?
creating actions in the custompanel
- Peter Wassink
- Posts: 4437
- Joined: 17 Feb 2006, 15:38
- Location: Amsterdam
- Contact:
creating actions in the custompanel
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
Re: creating actions in the custompanel
Hi Peter,
a few tv_comands:
tv_BrushRestore SubPixel # //where # is 0=(None) 1=(Medium) 2=(Best)
tv_BrushRestore Stamp # //where # is 0=(Color) 1=(Alpha) 2=(Luma) 3=(Hue) 4=(LumaInvert) 5=(AlphaMax)
tv_Paper Active # //where 0=(Off) 1=(On)
-------------------------------------------------------------
I've found I can sometimes find undocumented parameters using a version of the following George script...
// For example, what are the parameters for Paper using the tv_PaperInfo command
tv_PaperInfo // tv_command to check out
parse result info
tv_warn info
------------------------------------------------------------
Here's a quick .grg file for selecting StampMode
// SetStampMode.grg
// July 22, 2009
// By Svengali
// Choose Stamp Mode for CutBrush
//
// version 1
Param None
ScriptName = 'SetStampMode'
tv_ListRequest "Color|Alpha|Luma|Hue|LumaInvert|AlphaMax" // display list options
Parse Result Choice StampName // get selected option number and option value
IF (Choice == -1) // user cancelled, clicked outside list
EXIT // StampMode maintains same setting
END
tv_BrushRestore Stamp Choice // set StampMode
Sven
(unzip the attached scripts into the \George folder - the assign each to a button to see what they do)
a few tv_comands:
tv_BrushRestore SubPixel # //where # is 0=(None) 1=(Medium) 2=(Best)
tv_BrushRestore Stamp # //where # is 0=(Color) 1=(Alpha) 2=(Luma) 3=(Hue) 4=(LumaInvert) 5=(AlphaMax)
tv_Paper Active # //where 0=(Off) 1=(On)
-------------------------------------------------------------
I've found I can sometimes find undocumented parameters using a version of the following George script...
// For example, what are the parameters for Paper using the tv_PaperInfo command
tv_PaperInfo // tv_command to check out
parse result info
tv_warn info
------------------------------------------------------------
Here's a quick .grg file for selecting StampMode
// SetStampMode.grg
// July 22, 2009
// By Svengali
// Choose Stamp Mode for CutBrush
//
// version 1
Param None
ScriptName = 'SetStampMode'
tv_ListRequest "Color|Alpha|Luma|Hue|LumaInvert|AlphaMax" // display list options
Parse Result Choice StampName // get selected option number and option value
IF (Choice == -1) // user cancelled, clicked outside list
EXIT // StampMode maintains same setting
END
tv_BrushRestore Stamp Choice // set StampMode
Sven
(unzip the attached scripts into the \George folder - the assign each to a button to see what they do)
- Attachments
-
- SetStampMode & FindParameters.zip
- two sample george scripts
- (667 Bytes) Downloaded 811 times
Last edited by Svengali on 22 Jul 2009, 19:01, edited 2 times in total.
- Peter Wassink
- Posts: 4437
- Joined: 17 Feb 2006, 15:38
- Location: Amsterdam
- Contact:
Re: creating actions in the custompanel
thank you sven.
the paper command worked!
do you know where i can find a list of these commands?
because setting the custombrush mode to alpha and the smooth to best didn't work.
i'm not sure what the command for the custombrush is.
i also tried these but they didn't work:
tv_CutBrush Stamp 1
tv_CutBrush Aaliasing 2
tv_CustomBrush Stamp 1
tv_CustomBrush Aaliasing 2
and sorry if i'm sounding a bit ignorant but i have no idea where i should enter your little script
the paper command worked!
do you know where i can find a list of these commands?
because setting the custombrush mode to alpha and the smooth to best didn't work.
i'm not sure what the command for the custombrush is.
i also tried these but they didn't work:
tv_CutBrush Stamp 1
tv_CutBrush Aaliasing 2
tv_CustomBrush Stamp 1
tv_CustomBrush Aaliasing 2
and sorry if i'm sounding a bit ignorant but i have no idea where i should enter your little script
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
Re: creating actions in the custompanel
Sorry Peter,
Well, I managed to get two out of three wrong... try this.
tv_BrushRestore Stamp # (instead of tv_PenBrush Stamp #)
and
tv_BrushRestore SubPixel # (instead of tv_PenBrush Aantialiasing #) same values apply 0=none 1=medium 2=best
---------------------------------------------------------------------------
george scripts (.grg) are created with a text editor and go into the George folder. I'll save the listings into a zip file and attach it to my previous reply... along with fixing the tv_ commands too. Again, apologies for the confusion - I need an editor.
edit: I forgot to add that the tv_commands list can be had by any registered TVPaint user by requesting a copy of the SDK from TVPaint. To receive the TVPaint SDK, you need to send a request indicating for which software you need it at support[at]tvpaint[dot]fr.
Well, I managed to get two out of three wrong... try this.
tv_BrushRestore Stamp # (instead of tv_PenBrush Stamp #)
and
tv_BrushRestore SubPixel # (instead of tv_PenBrush Aantialiasing #) same values apply 0=none 1=medium 2=best
---------------------------------------------------------------------------
george scripts (.grg) are created with a text editor and go into the George folder. I'll save the listings into a zip file and attach it to my previous reply... along with fixing the tv_ commands too. Again, apologies for the confusion - I need an editor.
edit: I forgot to add that the tv_commands list can be had by any registered TVPaint user by requesting a copy of the SDK from TVPaint. To receive the TVPaint SDK, you need to send a request indicating for which software you need it at support[at]tvpaint[dot]fr.