Forum Replies Created

  • Aris Melachroinos

    October 9, 2021 at 5:42 pm in reply to: Expression Internal Error

    It is not but thank you for your suggestion.
    I copied the layers to another composition and it worked there, so it must be a bug.

  • Aris Melachroinos

    April 5, 2021 at 4:32 pm in reply to: Scale rotated layer to fit comp size

    Thank you a lot for your answer.
    Modifying the last line from [100,100]/Math… to [100,100]*Math… does exactly what I want.

    Do you happen to have any link so I can read about this calculation to understand it a bit better?

  • Nevermind, I found the cause.
    I had enabled the setting: Settings -> Navigation -> Trackball Rotation
    Turning that feature off fixed the issue.

  • I have the same issue. Did you manage to find a solution?

  • Aris Melachroinos

    January 3, 2021 at 10:29 am in reply to: Renaming Solid Layer (Expression or Script)

    Hi Scott,

    I am not sure if I fully understood your whole project (I am not sure if/why you need a slider) but if you want to just rename the layers that start with ‘Bar’ from bottom to top, this is a very simple script. You don’t need any slider/expressions to do something like this, but maybe I misunderstood something.

    var comp = app.project.activeItem;
    var str1 = 'Bar';
    var numCounter = 1;
    //making a regular expression that starts with str1
    var regex = new RegExp("^" + str1);
    //looping through all layers from last to first
    for (var i = comp.numLayers; i >=1; i--){
    var currentLayer = comp.layer(i);
    var currentName = currentLayer.name;
    if(currentName.match(regex)==str1){
    //this layer name starts with str1
    currentLayer.name = str1 + " " + numCounter;
    numCounter++;
    }
    }

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