Skip to main content
Participant
March 20, 2021
質問

SyntaxError: Unexpected identifier

  • March 20, 2021
  • 返信数 2.
  • 3802 ビュー

 

I am trying to get a graphic to react to the audio in my project but I keep getting this error no matter how closely I follow tutorials. Please help!

返信数 2

thepixelsmith
Community Expert
Community Expert
May 23, 2025

The Transform.Scale is the dummy text that AE automatically adds to a new scale expression. 

Delete that section, it might fix it.

Whenever you add an expression AE adds some dummy starter text to the property (it has to do this otherwise the expression would immediately be removed the moment you clicked outside of the text field).

By itself that dummy text won't cause an error but if you leave it there while adding your own code it will cause a problem.

 

Mylenium
Legend
March 21, 2021

There is no reason why there should be an extra "transform.scale" after you've declared the variables. This makes no sense. Rather than blindly following tutorials you may want to start by actually reading the online help on expression basics to avoid such unnecessary issues.

 

Mylenium

Dallin5FDE作成者
Participant
March 25, 2021

Thanks for your help and your unecessary patronization. I'm not trying to have a thorough understanding of After Effects at this stage, just trying to get one quick effect and I'm out. 

Participant
May 19, 2021

I agree.  That is the most condesending answer.  Either answer the question or don't.  Stop making people feel bad for try to learning something.

ALSO, Adobe automatically adds the transform.scale using the pickwip.  So it's not your fault.