Skip to main content
Inspiring
March 30, 2010
Question

Pixel before effects

  • March 30, 2010
  • 1 reply
  • 1931 views

Hello guys,

Another question in two days... yes i have been coming back to AE development recently.

I hope someone will have some answers to help me.

I want to get the color of pixels before any effects has been applied. So regardless of which effects have been applied I want the original pixel of my layer. Is it possible?

With scripts, we can use the sampleImage(postEffect= false) for that, so i guess it would be possible from the API... but I could not find the API function enabling that.

If anyone has an idea...thank you in advance.

Regards.

This topic has been closed for replies.

1 reply

Community Expert
March 30, 2010

you could checkout  the same layer on which the effect is applied using PF_CHECK_PARAM().

this would give you the original layer pixels with no effects or masks applied.

Inspiring
April 1, 2010

It worked out !

Thank you very much for your help. I m wondering now if it is possible to get the pixel before effects but after mask have been applied.

Community Expert
April 1, 2010

that's a tricky one...

there's no elegant way of achieving that.

one way to go about this problem is to use PF_MaskWorldWithPath and composite the results of all the masks one after the other.

the problem is that you can't use the 'expand' param of the masks using this method.

another way would be add a dummy effect as the first effect on that layer, and have it save it's input buffer for your effect, who will ask the firts effect for that buffer via AEGP_EffectCallGeneric.

besides these two methods, only artisans have access to such data.

trying to use an artisan for that, will unleash a storm of trouble upon you, making you wish you never tried.

don't come crying to me saying i didn't worn you...