Script to change current brushs opacity?

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
Animark
Posts: 505
Joined: 16 Oct 2008, 15:26
Location: Berlin

Script to change current brushs opacity?

Post by Animark »

Hello,

I tried a lot but did'nt got any good results. Maybe it's a little thing for someone - for me it seems to be too big ;-).

I've made a filled stroke brush to change every black on a layer to blue. It is based on the original tint blue airbrush from one of the sketch panels. When I use some of my other filled stroke brushes with their opacity setting set to 30% and I come back to my tint blue brush, it keeps the opacity of 30% instead of 100%. So it looks like that the opacity settings are not saved in my blue filled stroke bruch.
TintBlue.JPG
TintBlue.JPG (34.5 KiB) Viewed 8605 times
Now I am searching for script (?) I can add to my blue brush to set its opacity to 100%. I tried with some georg commands but didn't catched the logic. I am an animator much more than a programmer ;-). I found out, how to ask the tool and get the settings of it, but I was'nt able to tell it the opacity. So, some help would be georgous! :D.
TVPaint 10.5.7 - Win10/64
TVPaint 11.0.8 - Win10/64
TVPaint 11.0.8 - Win10/64 (Wacom Companion 2)
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: Script to change current brushs opacity?

Post by ZigOtto »

hi Animark,

try to replace your line 3 by this command (type script's command) :

Code: Select all

tv_setactiveshape freehandfill opacity 100
hope it will do the job.
User avatar
Animark
Posts: 505
Joined: 16 Oct 2008, 15:26
Location: Berlin

Re: Script to change current brushs opacity?

Post by Animark »

Yeah, cool! That's it. Thanks a lot :-).
TVPaint 10.5.7 - Win10/64
TVPaint 11.0.8 - Win10/64
TVPaint 11.0.8 - Win10/64 (Wacom Companion 2)
Post Reply