Skip to main content
Participant
Sep 12, 2023 9:36 PM UTC
Question

Unable to execute script at line 2; expected

I am trying to run a kml script in After effects and constantly getting this error: 

Unable to execute script at line 2. Expected: ;

How can I solve this?

4 replies

Justin Taylor-Hyper Brew
Community Expert
Community Expert
Sep 14, 2023 4:39 PM UTC

The format for scripts is JSX, not KML, so maybe that's your issue. Did you write the script or did you buy / download it from an author?

Translate
Participant
Sep 14, 2023 5:28 PM UTC

I downloaded the script from Imagiscope tech and is working fine, my AE just needed restarting 😉

Thank you anyway for help!

Translate
M3ANIMATE
Participant
Nov 30, 2024 4:34 AM UTC

Same here! My 2025.0.1 After Effects was working great, but suddenly showed this error every time I launched the After Effects. Rubberhose 3 and Void are the main scripts that I use.

Translate
Community Expert
Sep 12, 2023 10:11 PM UTC

Without seeing the script it is going to be pretty difficult to guess what is happening in line 2 that is causing the error.

Translate