Skip to main content
Participant
November 30, 2022
Question

AE Expression Erros

  • November 30, 2022
  • 1 reply
  • 371 views

Hello guys, 

I am working on AE 2023/OS12.5  and creating an interaction when the shape deforms when collides with the shadow.  

 

Expression: 
x=thisComp.layer(thisComp.layer("bg")).sampleImage(transform.position), [0.5, 0.5]/2, true, time) [0];
100*[x,x];

Does anyone have an idea why I am having this error?

 

Many thanks in advance,

 

Røms

 

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
November 30, 2022

Maybe try it this way:

x=thisComp.layer("bg").sampleImage(transform.position, [0.5, 0.5]/2, true, time) [0];
100*[x,x];