how to measure alpha values

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

how to measure alpha values

Post by Peter Wassink »

for a paper structure i needed to even out "alpha holes" in semi transparent area's.
i managed to to do this by merging a semitransparent layer using "Alpha diff mode while merging.
still figuring out the ammount of transparency was trial and error.
is there a way to messure the alpha value of a pixel?
i tried the coordinate panel but it only gives RGB values and no alpha.
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
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: how to measure alpha values

Post by Fabrice »

Hello Peter,

I'm not sure to understand what you want to do, but I think that the "FX > Color > Histogram" may help. There is an alpha tab inside.
Fabrice Debarge
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: how to measure alpha values

Post by Peter Wassink »

Fabrice wrote:Hello Peter,

I'm not sure to understand what you want to do
i guess its a bit tricky to explain
but i need to close or "heal" holes in a layer that is not 100% opaque

so say i have a layer that is 50% transparent but it has parts that are 100 % transparent (the holes)
i now want to fill these 100% holes so the whole area is seamlessly 50% transparent.
this is possible with an alpha diffmerge but only if you know that the transparency value of the layer i need to fix is indeed 50%
thats why i was looking for a way to find out what % of transparency a pixel has ( what alpha value).

The Histogram FX seems to display a graph of the Alpha info in an image but i don't see how i can get a usefull opacvity% out of it.
I was thinking along the lines of the colorpicker but then an "alpha picker"
Feature request?
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
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: how to measure alpha values

Post by ZigOtto »

not totally clear to me, but haven't you the RGBA values in your infobar when you roll your mouse (cursor) over the canvas ?
infobar.png
infobar.png (2.24 KiB) Viewed 7952 times

if you need the alpha info of a single layer, hide all others.
if not a solution for your specific case, you can consider to write a little script and get the "right" Alpha value,
using one of these commands (regarding your needs) :

Code: Select all

tv_PicColor
tv_GetPixelDisplay
tv_GetPixelLayer

Note that the returned A value is from 0 to 255, not in % opacity (0 to 100).

btw, I remember Manuel have done and shared (far ago) a george script called "PickColor+Alpha" or something,
notg sure, but maybe it's just what you 're looking for actually ... :)
Last edited by ZigOtto on 21 Feb 2011, 13:45, edited 1 time in total.
User avatar
slowtiger
Posts: 2949
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: how to measure alpha values

Post by slowtiger »

It looks like it only shows the alpha of the selected layer? No need to hide the others.
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: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: how to measure alpha values

Post by Peter Wassink »

ZigOtto wrote:not totally clear to me, but haven't you the RGBA values in your infobar when you roll your mouse (cursor) over the canvas ?
wow Thanks Zig,
a clear case of Doh!
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