Copy link to clipboard
Copied
Hello.
I am trying to dyamically return the color value of a text layer based on the color value of the layer underneath its position (which is a video). This is my expression. It is applied to the Source Text of the text layer. All I get is [0,0,0,0] no matter where the text layer is location within the composition.
sampleImage(transform.position, radius = [8, 8], postEffect = true, t = time)
It is this a bug or ... user error?
Evan
If you're trying to sample the layer below the text layer in the layer stack, I'd try it this way
thisComp.layer(index+1).sampleImage(transform.position, radius = [8, 8], postEffect = true, t = time)
:
Copy link to clipboard
Copied
If you're trying to sample the layer below the text layer in the layer stack, I'd try it this way
thisComp.layer(index+1).sampleImage(transform.position, radius = [8, 8], postEffect = true, t = time)
:
Copy link to clipboard
Copied
Thanks Dan. That did the trick.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now