Get current brush mode?

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
KenC
Posts: 174
Joined: 14 Aug 2009, 09:28
Location: Denmark

Get current brush mode?

Post by KenC »

I'm hacking together a script to change line size up and down in 10 pixel increments no matter what tool is selected.

Is there a command to tell me what the current brush type is.. airbrush,penbrush,cutbrush etc..?

There's tv_BrushInfo but it only returns the width height of the cutbrush and not what type of brush is selected.
There's no place like ~/
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: Get current brush mode?

Post by Hervé »

KenC wrote:I'm hacking together a script to change line size up and down in 10 pixel increments no matter what tool is selected.

Is there a command to tell me what the current brush type is.. airbrush,penbrush,cutbrush etc..?

There's tv_BrushInfo but it only returns the width height of the cutbrush and not what type of brush is selected.
tv_getactivetool and tv_getactiveshape will do the job
Hervé ADAM, TVPaint Team
Post Reply