Skip to main content
Participant
May 12, 2021
Answered

thisComp is not defined.

  • May 12, 2021
  • 1 reply
  • 2689 views

Hey, all!

I'm having a problem with an expression in After Effects. What I want to do is make one shape scale up after the layer under it, with a few frames of delay. Think a sheet of hexagons growing out from one point on the screen.

I've found this expression to do it:

var S=thisComp.layer(index+1).transform.scale;
var D=thisComp.layer("Adjustment Layer").effect("Slider Control")("Slider")*thiscomp.frameDuration;
S.valueAtTime(time-D)

However, I keep getting this message:

After Effects warning: Expression Disabled

Error at line 1 in property 'Scale' of layer 26("2") in comp 'First Line".

ReferenceError: thiscomp is not defined

What am I doing wrong? How would I even define thisComp? I thought it would just indicate the current composition layer.

 

Please help! Thanks.

 

This topic has been closed for replies.
Correct answer Dan Ebberts

In the second line, it looks like you used thiscomp instead of thisComp.

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
May 12, 2021

In the second line, it looks like you used thiscomp instead of thisComp.