Forum Replies Created

  • But this solution has one problem: when undoing there is one additional step, it does not delete the layer but first moves it to the very top (the place it was actually created before moving to a new position) and only one other undo will actually remove such created layer, not good.

    Is there any other DIRECT option how to place newly created layer RIGHT AWAY to a specified position (index)?

  • Gee, I accidentally REPORTED the correct answer, OMG, webmaster should really change the way one can report a post cos many as I did could thought at first sight it looks like “REPOST/REPLY” – sorry for that! ☹

    I just wanted to say to the author that it is the actual solution to overwrite existing files which I successfully used in my rendering script…thanks for that!

  • OK, I have solved it myself like this:

    var item = app.project.activeItem;
    if (item != null)
    {
    var rq = app.project.renderQueue;
    var render = rq.items.add(item);
    var settings = {
    "Quality":"Draft",
    "Resolution":"Half",
    "Time Span":"Work Area Only",
    "Color Depth":"32 bits per channel"
    };
    render.setSettings(settings);
    render.outputModules[1].applyTemplate("Lossless");
    var crop_data = {
    "Crop":true,
    "Crop Bottom":100,
    "Crop Left":100,
    "Crop Right":100,
    "Crop Top":100
    };
    render.outputModules[1].setSettings(crop_data);
    var folder = app.project.file.parent.fsName;
    render.outputModules[1].file = new File(folder + "/" + item.name + " [DRAFT].avi");
    app.beginSuppressDialogs();
    rq.render();
    app.endSuppressDialogs(false);
    render.remove();
    rq.showWindow(false);
    }
    else
    {
    alert("You have to click inside some active composition timeline first!");
    }

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy