AfterFx, crash when try run afterfx.exe -r

309 Views Asked by At

I want to run a script load from location. Same like:

AfterFx.exe -r "demo.jsx"

Content my file: demo.jsx

alert('hello world')

When i try to run script above: enter image description here

But while I try to -s instance for -r, script run scucess

AfterFx.exe -s "alert('hello world')"

Can anyone guid me fix this error, i want to run script from local file.

1

There are 1 best solutions below

0
On

Sorry, I finally resolve this error. Use -s with $.evalFile(URL-here)

Full: AfterFX.exe -s " $.evalFile("demo.jsx")" ==> this work for me.