changePath on outputModule problem.
Posted: April 25th, 2012, 6:50 am
Hello,
I have a script that adds an item to the render queue and then changes the path to a user given directory.
The code is taken out of context:
For reasons unknown to me, the function returns with true, but the render path has not been changed. Can anybody tell me what I'm doing wrong?
Thanks.
I have a script that adds an item to the render queue and then changes the path to a user given directory.
The code is taken out of context:
Code: Select all
var renderQueue = app.project.renderQueue;
var rqitem = renderQueue.items.add(some_composition);
var newPath = "/tmp/test"; // or some other user-given string
if ( rqitem.outputModule(1).file.changePath(newPath) != true )
alert ("Problem changing path") ;
renderQueue.render();
Thanks.