how do i re-color with the A-color in one click.

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:

how do i re-color with the A-color in one click.

Post by Peter Wassink »

i'm trying to create a button that can turn the RGB value off all pixels of a layer into the current A-color while respecting the alpha.

i had made a button before for turning them into 1 specific color using the
Command: tv_cmd Heads tv_pixelmatrix.....

but its probably not possible to use that command to apply the current A color no ,mmatter what it is?
unless i 'd write a script

so i'll need to take another aproach like locking the alpha then somehow filling the whole project view then unlocking the alpha again.

any ideas?
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
User avatar
slowtiger
Posts: 2889
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: how do i re-color with the A-color in one click.

Post by slowtiger »

I "fill" this by means of a filled rectangle. Could you incorporate this in the script?
TVP 10.0.18 and 11.0 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
TVP 11.0 and 11.7 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
TVP 11.7 Mac Mini M2pro 32GB OS 13.5
User avatar
Peter Wassink
Posts: 4283
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: how do i re-color with the A-color in one click.

Post by Peter Wassink »

i think its possible, but i would want to do it without first having to indicate the rectangle, i want a one click solution.
and i have no idea how to script that.

i figure you could also write a script that translates any RGB value into the right tv_cmd Heads tv_pixelmatrix_0000_0000_0000_0000 value.
that would probably be the most elegant solution... but again for this my coding skills are totally lacking.
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