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

Bug in renderQueue.outputModule.file; everything after period gets truncated

Engaged ,
Jan 28, 2019 Jan 28, 2019

Copy link to clipboard

Copied

I wrote a script that takes a video title from the user and will render it (Windows only), with the rendered file having that name.

Observe the following code:

var renderpath = containingfolder + "\\mxfs\\" + title;

app.project.renderQueue.item(1).outputModule(1).file = File(renderpath);

I realized that if the variable title has a period in it, for some reason, the renderQueue output name cuts off everything after the period and then appends the extension of whatever codec I'm using (mxf typically).

Here's what I mean; if the user enters this:

l7wRNLU.png

Then the "title" variable contains is "A Vs. B" (I have verified this through alert(title)), but yet...

OtgmGvl.png

Everything after the period gets cut off!  There must be something I'm not understanding, or perhaps this is a bug.  Can somebody please explain why part of the title gets truncated?  How can I fix this?

I urge you to try this for yourself.

Windows 10 build 14393 and After Effects CC 2014.0 for reference.

TOPICS
Scripting

Views

213

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
no replies

Have something to add?

Join the conversation