Forum Replies Created

  • Tal Arbiv

    December 27, 2016 at 11:38 pm in reply to: How to check by name if a slider exist on a layer ?

    wow, i was sure i tried that at the beginning…
    maybe i needed some operation to be made at the same time to the layers… anyway, it works now,
    really appreciate your help!

  • Tal Arbiv

    December 27, 2016 at 11:38 am in reply to: How to check by name if a slider exist on a layer ?

    This will be great to add thanks.
    but the problem wasn’t the expression. putting expressions works great for all layers and all properties, the valueAtTime line doesn’t.
    what am i missing?

  • Tal Arbiv

    December 27, 2016 at 1:09 am in reply to: How to check by name if a slider exist on a layer ?

    i tried it and it breaks…

    something about that valueAtTime method stops the loop that goes through the layers

    var myComp = app.project.activeItem;
    var sellayers = myComp.selectedLayers;
    var selprop = myComp.selectedProperties;

    for (i=0; i <= sellayers.length-1; i++){
    for (p=0; p <= selprop.length-1; p++){
    selprop[p].expression =("1"); //WORKS GREAT
    alert (selprop[p].valueAtTime(0,false)); // DOSNT WORK breaks the loop after the first layer
    }
    }

  • Tal Arbiv

    December 26, 2016 at 6:41 pm in reply to: How to check by name if a slider exist on a layer ?

    Thank you so much Dan!

    yes its scripting…

    The second question i had was how can i tell how many dimensions a property has ?
    i’m applying an expression to layers and i want the expression to change according to the dimensions…

    lets take wiggle for example
    if there is a better way to do this please share…

    Thanks a lot again!

    var expression1 = "wiggle (10,10)";
    var expression2 = "w=wiggle (10,10);[w[0],w[0]]";
    var expression3 = "w=wiggle (10,10);[w[0],w[0],w[0]]";

    for (i=0; i <= sellayers.length-1; i++){
    for (p=0; p < = selprop.length-1; p++){
    //missing query
    selprop[p].expression = //expressionX;
    }

  • Excellent,
    Thanks

  • Tal Arbiv

    December 3, 2016 at 11:14 pm in reply to: Wiggle uniform scale of a flipped/non squared ratio layer

    YES! great!
    that seem to work.
    thank you!

  • Tal Arbiv

    December 3, 2016 at 11:13 pm in reply to: Wiggle uniform scale of a flipped/non squared ratio layer

    Thanks a lot, but no, this changes the ratio.

    lets say you have a layer and its scale is something like [-30 , 100] if you parent it to a null you can wiggle it uniformly with [w[0],w[0]] .
    i’m looking for that same result with a single expression without using a null….

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