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

Targeting a different drive using extendscript

New Here ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

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

Views

108

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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