Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

thisComp is not defined.

New Here ,
May 12, 2021 May 12, 2021

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.

 

TOPICS
Error or problem , Expressions
2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 12, 2021 May 12, 2021

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

Translate
Community Expert ,
May 12, 2021 May 12, 2021
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines