Is there a function that sets the current drawmode of the selected brush? Like line, freehand draw, elipse, floodfill etc..
I'm trying to create a popup menu with tv_listrequest that allows me to pick tools and assign a shortcut to this script. Then I have a way to select tools without moving my pen to pick tools as the popup menu follows the mouse position.
Or perhaps a way to fire of tvpaint shortcut (Control+k) commands from george would be even better. That way I could create a dummy palette with the tools I want and create a popup menu to select from those.
Also, is there a way to insert a menu seperator into the popup from tv_listrequest? I tried using "-" but that doesn't work.
Set toolmode or issue shortcut commands from george?
Set toolmode or issue shortcut commands from george?
There's no place like ~/
Re: Set toolmode or issue shortcut commands from george?
tv_setActiveShapeKenC wrote:Is there a function that sets the current drawmode of the selected brush? Like line, freehand draw, elipse, floodfill etc..
singledot|dot|flood|freehandline|freehandfill|linefill|line|splinefill|spline|rectfill|rect|ellipsefill|ellipse|selectrect|
selectellipse|selectfreehand|selectspline|selectflood|cutrect|cutpoly|cutfreehand|cutflood|crop|panning|position|
wrap|zoom
Last edited by ZigOtto on 30 Aug 2009, 10:16, edited 1 time in total.
Re: Set toolmode or issue shortcut commands from george?
That's why I couldn't find it, it's not in the list of commands in my SDK docs.
Thanks.
Thanks.
There's no place like ~/
Re: Set toolmode or issue shortcut commands from george?
probably the sdk doc needs a little refreshing update,
I think it will come with the (coming soon) v9.5 release.
stay tuned.
I think it will come with the (coming soon) v9.5 release.
stay tuned.
Re: Set toolmode or issue shortcut commands from george?
Great. Thanks for the updated list.
There's no place like ~/
Re: Set toolmode or issue shortcut commands from george?
Hi Ken,
Here's a little script (for TVP 9) that displays info on the current tool and parameter settings... very useful for viewing all the parameters (and their order, which is important when writing script commands to set specific parameters...) Assign it to a button and you can review the current tool at any time.
When 9.5 comes out I'll release an updated ActiveToolInfo.grg. The 9.5 tv_GetActiveShape command parses the extended info a little differently.
Sven
Here's a little script (for TVP 9) that displays info on the current tool and parameter settings... very useful for viewing all the parameters (and their order, which is important when writing script commands to set specific parameters...) Assign it to a button and you can review the current tool at any time.
When 9.5 comes out I'll release an updated ActiveToolInfo.grg. The 9.5 tv_GetActiveShape command parses the extended info a little differently.
Sven
- Attachments
-
- ActiveToolInfo.grg
- (2.76 KiB) Downloaded 170 times
Re: Set toolmode or issue shortcut commands from george?
Thanks Sven, that will come in real handy.
btw a switch/select case statement would be a super addition to george imo
btw a switch/select case statement would be a super addition to george imo
There's no place like ~/