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

Targeting a different drive using extendscript

New Here ,
Jan 09, 2023 Jan 09, 2023

I'm trying to import a file into After Effects using the following command:

AfterFX.exe -s "app.project.importFile(new ImportOptions().file = new File([FILE PATH]))"

This file, however, is located on an external SSD. When targeting this file, After Effects adds "C:/" to the front of the path name, so it turns out like "C:/D:/file.mp4". I can't figure out how to fix this, does anyone know?

TOPICS
Import and export , Scripting
162
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
LEGEND ,
Jan 09, 2023 Jan 09, 2023
LATEST

The specific issue you are seeing is a genuine bug, so try to convert the path to an URI using encode/ decodeURI functions.

 

Mylenium

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