Forum Replies Created

Page 107 of 1081
  • Your question is somewhat confusing, because first you say:

    >I would like to make the Blur Amount slider on the Master Control layer the control for the Blur Radius which is located on the Square layer

    But then you say:

    >…and the necessary expression would be written to the Blur Amount slider on the Master Control layer.

    So I’m not sure what you’re after. To be clear though, an expression can only affect the property hosting the expression, so if you want the expression to control the Blur Radius on the Square layer, that’s where the expression would have to be applied.

  • In line 3, you’ve got conflicting quotes. Try it this way:

    var myExpr = 'thisComp.layer("Master Null").effect("Drive")("Output 01")';
  • Dan Ebberts

    October 3, 2021 at 8:33 pm in reply to: UI Buttons to run scripts

    When I took your your code, removed the print() statements, and made the changes I suggested, it worked for me (copied the markers). I’m not sure why it doesn’t work for you.

  • This would be the basics:

    var myComp = app.project.activeItem;

    var myProps = myComp.selectedProperties;

    var myExpr = "value";

    for (var i = 0; i < myProps.length; i++){

    if (myProps[i].canSetExpression) myProps[i].expression = myExpr;

    }

  • Dan Ebberts

    October 3, 2021 at 6:41 pm in reply to: UI Buttons to run scripts

    <div>Try changing this section:</div>

    win.ui.button01.onClick = function(){

    print("button 01 pressed"); //debug

    layersInToCompMarkers();

    }

    win.ui.button02.onClick = function(){

    print("button 02 pressed"); //debug

    layerMarkersToComp();

    }

    to this:

    win.ui.button01.onClick = layersInToCompMarkers;

    win.ui.button02.onClick = layerMarkersToComp;

  • Dan Ebberts

    October 1, 2021 at 4:49 pm in reply to: After Effects: Undefined value used in the expression

    Try it like this:

    x = thisComp.layer("text").effect("Slider Control")("Slider");

    if (x<=30){effect("low")("Color")}

    else if (x>30&&x<70){effect("middle")("Color")}

    else{effect("high")("Color")}

  • Dan Ebberts

    September 27, 2021 at 10:09 pm in reply to: scale expression ratio

    Assuming that the scale of the parent is animated (via keyframes or expression), something like this could work:

    s = thisComp.layer("parent").scale;

    s.valueAtTime(0) + (s - s.valueAtTime(0))*0.75;

  • Dan Ebberts

    September 27, 2021 at 6:56 pm in reply to: scale expression ratio

    Unless I’m missing something, I think it would just be:

    thisComp.layer("parent").scale*0.75
  • Dan Ebberts

    September 23, 2021 at 12:59 pm in reply to: Animating wiggle effect problem
  • Something like this should work:

    (thisComp.layer("% P&L").effect("Slider Control")("Slider")+2).toFixed(2)
Page 107 of 1081

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