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:
Then the "title" variable contains is "A Vs. B" (I have verified this through alert(title)), but yet...
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.
Have something to add?