Forum Replies Created

Page 18 of 32
  • Xavier Gomez

    January 28, 2015 at 1:13 pm in reply to: Export single still image from numerous comps

    One thing to know is that there is a ready to use comp.sameFrameAsPng(time, destFile) method for composition objects in ExtendScript (comp: CompItem, time: time in seconds, destFile: the file to write to).

    If you can live with a PNG output, your script will be fairly simple. If you absolutely want JPEG, it will be probably more tedious.

    Xavier.

  • Xavier Gomez

    January 26, 2015 at 8:19 pm in reply to: Recursively search folders from a script

    app.project.rootFolder; // not visible, its name is “Root”

    I think that what you called “footage” is the folder you are looking for (no need of a search function),
    and its parentFolder is the rootFolder:

    var myFile = File(“~/Desktop/Bowls.aep”);
    var io = new ImportOptions(myFile);
    var footage;

    if (io.canImportAs(ImportAsType.PROJECT)){
    io.importAs = ImportAsType.PROJECT;
    footage = app.project.importFile(io);
    alert(“parentFolder: ” + footage.parentFolder.name);
    alert(“is root folder: ” + (footage.parentFolder===app.project.rootFolder));
    alert(“footage is instance of: ” + footage.constructor.name);
    };

    Xavier.

  • Xavier Gomez

    January 13, 2015 at 3:26 pm in reply to: List all layers inside a selected composition

    Even if a layer is a precomp, it doesnt have a “layers” property.
    You should use layer.source to get to its source.
    If the layer is a precomp, then layer.source should be a CompItem:

    var curItem = app.project.activeItem;
    var selectedLayers = curItem.selectedLayers;
    var curLayer = curItem.selectedLayers[0];
    var layersInside = curLayer.source.layers;

    Care: this will be valid only if currLayer is a precomp.

    Xavier

  • Can you post a screenshot of the layout ?

    Xavier.

  • Xavier Gomez

    December 22, 2014 at 9:33 pm in reply to: Affecting parameters based on gradient map

    Just in case, there is also a ready-made solution on aescripts.com:
    https://aescripts.com/ae-shader-effector/

    Xavier.

  • Xavier Gomez

    November 19, 2014 at 5:42 pm in reply to: Moving null object using time*value of slider control

    Hi,

    doing what you want is not as straigthforward as it may seem.
    Have a look there, it is explained step by step: https://www.motionscript.com/articles/speed-control.html#linear

    Xavier

  • Xavier Gomez

    November 18, 2014 at 8:42 pm in reply to: Obtaining the minimum value of an array

    OK thank you.

    I’m surprised, i thought that the javascript implementation was the same across all versions, with only the object model growing from time to time.

    Xavier.

  • Xavier Gomez

    November 18, 2014 at 8:11 pm in reply to: Obtaining the minimum value of an array

    Dan,
    i tested this and obtained 4.
    Can it have something to do with the AE version (CS5.5 for me)?

    Xavier.

  • Xavier Gomez

    November 10, 2014 at 8:03 am in reply to: Expression for get total comp length?

    It is myComp.duration

    There is a list of available “commands” for expressions (click the triangle close to the = sign of the expression).

    Xavier

  • Xavier Gomez

    October 30, 2014 at 5:47 pm in reply to: follow the leader maintain original position

    This might answer your question, but it assumes you named the keyframed leader “LEADER”.
    You can change that.

    Xavier

    lead = thisComp.layer("LEADER");
    refTime = 0; // a time where all layers are lined up
    if (time<= refTime) {value;}
    else{
    delay = Math.abs(lead.index-index)*framesToTime(thisComp.layer("USA").effect("delay")("Slider").value, 1/thisComp.frameDuration);
    lead.transform.position.valueAtTime(time-delay) + valueAtTime(refTime) - lead.transform.position.valueAtTime(refTime);
    };

Page 18 of 32

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