Page 1 of 1

customtool to activate "preserve transparency" function

Posted: 15 May 2018, 10:48
by Peter Wassink
i want a customtool to switch on "preserve transparency" on the active layer.

i can't find this in the keysstroke list, is it there? or do i need to script it?

Re: customtool to activate "preserve transparency" function

Posted: 15 May 2018, 15:06
by Svengali
Tools:Toggle Preserve Transparency?

Re: customtool to activate "preserve transparency" function

Posted: 16 May 2018, 08:11
by Peter Wassink
Ah thanks, Sven!

A search function here would be great, yesterday i spend some time looking and didn't find it myself... preserve transparency is not a tool!

And also....it is a toggle.
how can i make it active when i select the tool and deactivate when i select another tool?
in other words i want the preserve transparency linked to a specific tool, would that be possible?

Re: customtool to activate "preserve transparency" function

Posted: 16 May 2018, 14:30
by Svengali
To activate preserve transparency insert a new first command line in your tool button's script where you want to guarantee PRESERVE TRANSPARENCY ON :
tv_Preserve Alpha on

To deactivate preserve transparency insert a new first command line in ALL other tool button's scripts where you want to guarantee PRESERVE TRANSPARENCY OFF:
tv_Preserve Alpha off

sven

Re: customtool to activate "preserve transparency" function

Posted: 22 May 2018, 10:34
by Peter Wassink
Svengali wrote:
16 May 2018, 14:30
To activate preserve transparency insert a new first command line in your tool button's script where you want to guarantee PRESERVE TRANSPARENCY ON :
tv_Preserve Alpha on
Hey thanks! that was much easier then i thought
Svengali wrote:
16 May 2018, 14:30
To deactivate preserve transparency insert a new first command line in ALL other tool button's scripts where you want to guarantee PRESERVE TRANSPARENCY OFF:
tv_Preserve Alpha off

sven
oh no!