Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Make a script to seperate dimentions of the position of all the selected layers

  • Make a script to seperate dimentions of the position of all the selected layers

    Posted by Ramon Peppelenbos on October 31, 2014 at 2:33 pm

    Hi there,

    basically I’m trying to make a script that will seperate the dimentions of the x, y (and if 3D z) position of selected layers in the timeline. I found a script and changed it a bit, but all it’s doing is making Ae crash.

    What am I doing wrong?

    Thanks in advance!

    var myLayers = app.project.activeItem.selectedLayers;
    myLayers.property("Position").dimensionsSeparated = true;

    Regards,

    Ramon Peppelenbos

    Ramon Peppelenbos replied 11 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 31, 2014 at 4:29 pm

    The script won’t run, but it shouldn’t make AE crash. In any case, the script needs to loop through all the selected layers and separate the dimensions of each:


    var myLayers = app.project.activeItem.selectedLayers;
    for (var i = 0; i < myLayers.length; i++){
    myLayers[i].property("Position").dimensionsSeparated = true;
    }

    Dan

  • Ramon Peppelenbos

    October 31, 2014 at 4:40 pm

    Just like a few months ago, you provide me exactly what I need in less than a few hours after me posting the question. Thank you so much! you rock.

    Regards,

    Ramon Peppelenbos

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