Forum Replies Created

Page 73 of 1081
  • Dan Ebberts

    October 16, 2022 at 8:09 pm in reply to: Audio Expression

    >Once the pre-comped voice over track ends…

    How will the expression know this has happened?

  • Dan Ebberts

    October 16, 2022 at 7:01 pm in reply to: Audio Expression

    Are you saying that the voice over layer always exists and the level will be -12 while voice over is happening and -50 when it’s not, with no fading? Or something else?

  • Dan Ebberts

    October 15, 2022 at 6:34 am in reply to: Compare Arrays in Extendscript

    I’m guessing you either have File > Project Settings > Expressions > Expression Engine set to Legacy Extendscript (instead of JavaScript) or you’re running an old version of AE

  • Dan Ebberts

    October 15, 2022 at 5:23 am in reply to: Set expressions on all selected properties

    One thing I see is that in line 29 you’ve got

    s1.lenght 

    instead of

    s1.length
  • I think the scale expression for your folded paper layers is going to need to look something like this to account for the slider and the scale of the track matte:

    c = comp("LO 02 - Producer Name Reveal L to R 02");
    s1 = c.layer("Paper Unfold Intro - Driven").effect("Slider Control")("Slider");
    s2 = c.layer("Matte - Driver").scale[0];
    x = (scale[0] - s1)/(s2/100);
    [x,value[1]]

    But I think you’ll have to adjust your initial values (something doesn’t seem quite right).

  • I think we might need more info to help. How about some examples (numbers) that give the relationship that you want to see between the two scale values?

  • Dan Ebberts

    October 12, 2022 at 5:26 am in reply to: Compare Arrays in Extendscript

    If you’re using the JavaScript engine, something like this should work:

    myLayers = [1,12];
    containingLayers = [1,2,3,4,5];
    success = true;
    for (var i = 0; i < myLayers.length; i++){
    if (! containingLayers.includes(myLayers[i])){
    success = false;
    break;
    }
    }
    success
  • Unfortunately, I think that’s how it is.

  • Dan Ebberts

    October 10, 2022 at 8:17 pm in reply to: Delete layer marker with specific comment

    This is probably better:

    var myProp = app.project.activeItem.layer(1).property("Marker");
    try{
    var t = myProp.keyTime("test");
    var myKey = myProp.nearestKeyIndex(t);
    myProp.removeKey(myKey);
    }catch(e){
    }
  • Dan Ebberts

    October 10, 2022 at 7:35 pm in reply to: Delete layer marker with specific comment

    It worked for me. It wouldn’t give an error if it didn’t find a marker with your comment (you did change that from “test”, yes?)

Page 73 of 1081

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