MADRIX Forum • GetPixel() on Wave effect
Page 1 of 1

GetPixel() on Wave effect

Posted: Thu Nov 10, 2016 7:53 pm
by reporter
Hi,

If I use the GetPixel() on any given pixel in a layer macro of the SCE Wave effect, it always returns 255,255,255. All the other effects seem to accurately return the RGB values.

If I run the same macro from the Storage Place Macro, it works correctly.

Interestingly, it looks like GetPixel() returns 255,255,255 when inside the preRenderEffect or postRenderEffect functions.

(I don't know if it's related, but Madrix also silently crashed twice while I was testing this script issue.)

Thanks,

Re: GetPixel() on Wave effect

Posted: Fri Nov 11, 2016 4:22 pm
by Guertler
Hello Nathan,
.
That is not a bug in MADRIX.
The "SCE Wave / Radial" effect is working by default not with colors it is working with the Alpha channel. That's why you will get always 255, 255, 255 as return value for the GetPixel() function.
.
What you now can do is to enable the "Phase" in this effect and change the color for instance to "Red".
When you activate the Phase the effect will now work with the colors and not with the Alpha value.
.
Another option is to work with the GetAlpha() function to see the alpha value of the desired pixel.

Re: GetPixel() on Wave effect

Posted: Thu Nov 24, 2016 4:20 am
by reporter
Thanks for the heads up!