GetPixel() on Wave effect
Moderator: MADRIX Team
GetPixel() on Wave effect
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,
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
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.
.
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
Thanks for the heads up!