Page 1 of 1

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

Posted: 01 Jun 2021, 14:04
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?

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

Posted: 01 Jun 2021, 14:27
by slowtiger
I "fill" this by means of a filled rectangle. Could you incorporate this in the script?

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

Posted: 01 Jun 2021, 14:31
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.