GetPixel() on Wave effect

This forum is assigned for bug reporting of Version 3.X. Please be as accurate as possible.

Moderator: MADRIX Team

Locked
reporter
Posts: 61
Joined: Wed May 06, 2009 8:56 pm

GetPixel() on Wave effect

Post 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,
Guertler
Support
Support
Posts: 909
Joined: Tue Feb 04, 2014 10:47 am

Re: GetPixel() on Wave effect

Post 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.
reporter
Posts: 61
Joined: Wed May 06, 2009 8:56 pm

Re: GetPixel() on Wave effect

Post by reporter »

Thanks for the heads up!
Locked