Forum Replies Created

Page 1051 of 1081
  • Dan Ebberts

    October 8, 2005 at 5:15 pm in reply to: A Newbie question..

    There’s a little fly-out off the info palette where you can change how colors are shown numerically. Sounds like you need to set it to “8-bpc(0-255)”

    Dan

  • Dan Ebberts

    October 8, 2005 at 6:27 am in reply to: expression with springs

    That particular MM script is one of the things that doesn’t translate well to expressions. It’s because expressions can’t have persistant variables so the expression has no idea what its value was on the previous frame. And the spring calculation really needs to know where everything was on the previous frame. With MM, the calculation for the entire timeline is done all at once, it’s not an issue.

    Dan

  • Dan Ebberts

    October 8, 2005 at 6:27 am in reply to: expression with springs

    That particular MM script is one of the things that doesn’t translate well to expressions. It’s because expressions can’t have persistant variables so the expression has no idea what its value was on the previous frame. And the spring calculation really needs to know where everything was on the previous frame. With MM, the calculation for the entire timeline is done all at once, it’s not an issue.

    Dan

  • Dan Ebberts

    October 8, 2005 at 2:02 am in reply to: expression with springs

    George Polevoy posted a good solution to this back in 2003 I think. Search the archives and you should find it.

    Dan

  • Dan Ebberts

    October 8, 2005 at 2:02 am in reply to: expression with springs

    George Polevoy posted a good solution to this back in 2003 I think. Search the archives and you should find it.

    Dan

  • Dan Ebberts

    October 7, 2005 at 11:38 pm in reply to: script/code to set pre-existing layer mask?

    Everything you need should be in here somewhere 🙂

    var myLayer = app.project.item(1).layer(1);
    var myMask = myLayer.property(“ADBE Mask Parade”).property(1);
    var myProperty = myMask.property(“ADBE Mask Shape”);
    var myShape = myProperty.value;
    myShape.vertices = [[5,5],[5,45],[45,45],[45,5]];
    myShape.inTangents = [[0,0],[0,0],[0,0],[0,0]];
    myShape.outTangents = [[0,0],[0,0],[0,0],[0,0]];
    myShape.closed = true;
    myProperty.setValue(myShape);

    Dan

  • Dan Ebberts

    October 5, 2005 at 11:44 pm in reply to: changing a string “number” to a number (scripting)

    This should do it:

    myInteger = parseInt(myString);

    Dan

  • This script will do what you want. It assumes your layer is selected:

    var myComp = app.project.activeItem;
    var myLayer = myComp.selectedLayers[0];
    var myCurrentPos = myLayer.property(“position”).value;
    myLayer.property(“position”).setValue(myCurrentPos – [0,10]);

    Dan

  • This script will do what you want. It assumes your layer is selected:

    var myComp = app.project.activeItem;
    var myLayer = myComp.selectedLayers[0];
    var myCurrentPos = myLayer.property(“position”).value;
    myLayer.property(“position”).setValue(myCurrentPos – [0,10]);

    Dan

  • Dan Ebberts

    October 5, 2005 at 9:30 pm in reply to: Help with expression tied to Audio Keyframes

    Your minPosition and maxPosition variables need to be two dimensions, like this:

    minPosition = [0,0];
    maxPosition = [100,100];

    They could be any x and y values, they just need to be in the brackets.

    Dan

Page 1051 of 1081

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