Forum Replies Created

  • Markus Feder

    July 30, 2010 at 11:07 am in reply to: Scripting: Issues with effects and layer order …

    Hi there,

    I figured out a solution for the first part …
    In case anyone is interested, here´s my code:

    —————————————————–
    // Selected Composition
    var comp = app.project.activeItem;
    // Selected Layers
    var slctd_layer = comp.selectedLayers;

    // Create new Solid and set Adjustment Layer Flag
    var new_adjustment = comp.layers.addSolid([1,1,1], “Adjustment Layer”, comp.width,comp.height,comp.pixelAspect,comp.duration);
    new_adjustment.adjustmentLayer = true;

    // Check if at least one Layer is Selected
    // if so move the new Layer on top of the selected one
    if ( slctd_layer[0] != null){
    //alert (slctd_layer[0].index);
    new_adjustment.moveBefore(slctd_layer[0]);
    }
    —————————————————–

    But I still can´t figure out how to activate the “Effects Control Panel”. If someone knows what the internal
    aftereffects name is that would help I guess.

    And I still need a way to check if the used effects are available.
    (One workaround I can think of is to let the script do its thing and at the end check if the effect
    was applied or not and then delete the layer again … but that looks not like a good way to me …)

    I still could need some help ….

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