activate paint brush from gizmo

Hi , i create a gizmo, the content are the rotopaint node and others. I want to be able to paint when calling this gizmo. It seems i can’t paint without revealing the toolbox param of the rotopaint. So i do manage knob and pick the toolbox. The problem i don’t want user to change this toolbox ( I don’t wan’t to expose this toolbox to user actually but there’s no way. If i hide it , i can’t paint) . So i decide to ‘disable’ it. Now i got another problem: when it’s disabled , calling the gizmo won’t activate the brush automatically so i can’t paint. By default the toolbox will reset to ‘select’ mode. I tried to set the default using addonusercreate() set toolbox value to ’14’ which is the value for ‘brush’ mode. But i has no effect, i still got ‘select’ mode (even the brush icon has been highlighted in the toolbox knob). The only way out is i have to make it back to be ‘enabled’ and when calling the gizmo , first i still have to click once on the ‘brush’ in the toolbox just to make it active.

Anyone got any solution?

Thanx a lot.

No Responses to “activate paint brush from gizmo”

Post a Comment