customtool to activate "preserve transparency" function

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
Peter Wassink
Posts: 4283
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

customtool to activate "preserve transparency" function

Post 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?
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
Svengali
Posts: 1552
Joined: 28 Dec 2006, 10:08

Re: customtool to activate "preserve transparency" function

Post by Svengali »

Tools:Toggle Preserve Transparency?
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
User avatar
Peter Wassink
Posts: 4283
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: customtool to activate "preserve transparency" function

Post 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?
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
Svengali
Posts: 1552
Joined: 28 Dec 2006, 10:08

Re: customtool to activate "preserve transparency" function

Post 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
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
User avatar
Peter Wassink
Posts: 4283
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: customtool to activate "preserve transparency" function

Post 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!
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
Post Reply