Forum Replies Created

Page 64 of 65
  • Andrei Popa

    August 10, 2017 at 9:51 am in reply to: app.executeCommand() for 100% Zoom

    I’m not 100% sure about this but i think the app.executeCommant() is for menu command only. David Torno has put out this massive list of commands id, but i do not think there is a reset zoom.

    Andrei

  • Andrei Popa

    August 9, 2017 at 9:08 am in reply to: Linking range – Height Scale to Y Position

    Glad i could help!

    Andrei

  • Andrei Popa

    August 8, 2017 at 12:46 pm in reply to: How to turn off and on an expression randomly

    Hey Daniel. I thought you had a random enable/disable expression and it was hapening too often. Wll, in case you don’t, something you can try is
    modulusSeven = Math.round(time%7);
    if(modulusSeven <= 3 ){
    //your expression here
    }
    else value;

    This will enable the expression for 3.5 seconds, and then disable it 3.5 and so on. I think you could play with the 7 and 3 numbers so you can get something that seems random.

    Andrei

  • Andrei Popa

    August 8, 2017 at 9:46 am in reply to: Linking range – Height Scale to Y Position

    I made it this way. On the anchor property of your size-modifiyng layer add the expression

    temp = thisLayer.sourceRectAtTime(time,false).height/2;
    [value[0],temp]

    and on the size position (Rectangle 1>Rectangle path 1> Size) addd the expression

    temp = (thisComp.layer("Shape Laye 2").transform.position[1]*-1 + height)/2;
    [value[0], temp]

    replace “height” with the starting coordinates of your layers, or align the size-modifiyng layer to the bottom of the composition. I added an image for easier understanding.

    Andrei

  • Andrei Popa

    August 2, 2017 at 3:08 pm in reply to: My text box is not getting along with my expression.

    Try adding this code to the anchor of the “Rectangle Path 1” anchor;y=(66.5 - content("Rectangle 1").content("Rectangle Path 1").size[1])/2;
    [value[0],y]

    66.5 in this expression is the size the rectangle has when your text does not contain Y character.

    Andrei

  • I misscopied the expression:

    steps = 5;
    dist = thisLayer.sourceRectAtTime(time,false).width;
    sec = 3;
    tempX = value[0]+(Math.round(time/sec)%steps)*dist;
    [tempX,value[1]];

    Andrei

  • Andrei Popa

    July 31, 2017 at 11:01 am in reply to: How to turn off and on an expression randomly

    You could try to multiply the random expression with 3,4 so it is enabled/disabled 3,4 seconds.

    Andrei

  • This is a solution, but you`ll have to do some math. Calculate the steps you need until you get to B.
    steps = 5;
    dist = thisLayer.sourceRectAtTime(time,false).width;
    sec = 3;
    tempX = value[0]+(Math.round(time/sec)%steps)*;
    [tempX,value[1]];

    If you want to move it more than just its own size to the right, just add something to the dist variable. Sec is the interval between the moves in seconds and steps is how many times before repeating. You can add slider to this variables for an easier modify.

    Andrei

  • I don’t quite understand what you want to do, but i see this as potential problems:
    If you want your pink rectangle to grow with the keyframes, use this expression on the size of the rectangle
    m=thisComp.layer("Animation Duration").effect("Animation Duration main bar")("Slider")
    linear(m,0,100,[0,150],[1800,150])

    If you want the text to grow as the rectangle grows, use this expression on the text source
    Math.floor(thisComp.layer("Animation Duration").effect("Animation Duration main bar")("Slider"))+"%"
    Maybe change the color so the bar si different.
    If you want the text to grow with the first bar, use this expression on the source text
    Math.floor(thisComp.layer("Animation Duration").effect("Animation Duration BG CR")("Slider"))+"%"
    Now, if you decide to stop the rectangle an some percent, both the text and the rectangle will act accordingly.
    Otherwise, you will have to explain better your problem.
    All the best

    Andrei

  • Andrei Popa

    July 27, 2017 at 1:05 pm in reply to: Mask a solid?

    If you already created the mask path on the lightning layer, you could duplicate it, put the duplicate over the original(in the timeline), delete the lightning effect(only from the duplicate) and set the original solid’s track matte to “Alpha inverted matte”.

    Andrei

Page 64 of 65

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