Sg2.9
Mosaic Staple based on Alpha
Recent RSS
Mosaic Staple based on Alpha
From:  Tim
Date:  31. May 2011, 11:22

I'd like to use Mosaic Staple Raster based on Alpha value instead of gray value.
I found this in the code:

var hVal = 0;
hVal = color.gray * heightVal;

My guess is that I would have to replace color.gray but I have no idea what to put there. Can somebody help? Thanks!

Re: Mosaic Staple based on Alpha
Date:  31. May 2011, 19:44

Hello, glad that somebody seemed to find any use of my script.

Although I'm not able to test it right at the moment I would say that color.alpha and/or color.hasAlpha() (found here: Color) is what you are looking for...

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Stroke <-> Fill 09.01.08