Forum Replies Created

Page 30 of 65
  • Andrei Popa

    May 12, 2020 at 10:35 am in reply to: Maximum number of points in a path

    I tried your expression and didn’t notice any interruption. What do you mean? The line is missing at some point?

    If you are talking about the broken lines that appear at the edge of the curves, that is not interruption, it’s just Line Join property of the stroke. Go to the stroke under your path, collapse options and change “Line Join” to “Round Join”

    Andrei
    My Envato portfolio.

  • Just replace app.project.activeItem with the variable that holds the composition A.

    Andrei
    My Envato portfolio.

  • If composition F is already in composition A, and composition A is open, you can use this:

    app.project.activeItem.layer("F").position.setValue([100,100])

    Andrei
    My Envato portfolio.

  • Andrei Popa

    May 10, 2020 at 8:03 am in reply to: Close layer properties list

    I use another method.

    app.executeCommand(2771);
    app.executeCommand(2771);

    This is the id for “Reveal All Modified Properties”. I first select the layer and then run this command twice. Once it shows all modified props and the second time it collapses all properties.

    Andrei
    My Envato portfolio.

  • The expressions can’t set different fonts for the same layer yet. I personally hope that adobe will soon make this work.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    May 7, 2020 at 7:53 pm in reply to: Change style of selected word

    It’s not yet possible to set style for a part of the layer. You can only change the style for the entire layer.

    If you only try to make your text bold or italic you can add an animator with stroke, respectively skew. But that is about it.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    May 7, 2020 at 7:51 pm in reply to: Automating Text Data from External File

    Make a file with each value on a single row. If the layer must be empty, leave a blank row.

    EG:
    Red

    Blue

    Yellow

    Make a text layer. Select it and then run this script:

    var myTextProp = app.project.activeItem.selectedLayers[0]("ADBE Text Properties")("ADBE Text Document");
    var myFile = File.openDialog("Select your source file");
    if(myFile != null&&myFile.open("r")){
    var myString = myFile.read();
    myFile.close();
    }

    var arrayOfWords = myString.split('\n');

    for(var i = 0; i < arrayOfWords.length;i++){
    myTextProp.setValueAtTime(5*i,arrayOfWords[i])
    }

    Andrei
    My Envato portfolio.

  • You can’t have strings like that without + between them. Try this

    if (myProp && !altKey) {
    var myControl = myEffect + " " + myGroup + " " + "-" + " " + myLayerName;
    } else if (!myProp && altKey) {
    var myControl = myEffect;
    } else if (!myProp && !altKey) {
    var myControl = myEffect + " " + "-" + " " + myLayerName;
    } else if (myProp && altKey) {
    var myControl = myEffect + " " + myGroup;
    }

    Andrei
    My Envato portfolio.

  • Andrei Popa

    May 4, 2020 at 9:36 pm in reply to: Presenting 800 photos quickly

    I don’t know for a global fix on train of pics. But you can change the first parameter of seedrandom to anything else(something like seedRandom(1, true)). Basically, for each picture that you don’t like the direction, you can change this value and it will generate another.

    The train has nothing to do with time, its just that most of the time, wild random is not that beautiful.

    You can make it more organized if you want.
    One method would be to create a chain of values(about 10-15) and repeat those. Being so many, I don’t think that it would be observable. You could even add an offset that modifies them each cycle, so they don’t repeat.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    May 2, 2020 at 7:51 am in reply to: Presenting 800 photos quickly

    If you want to go fully random, try this.

    Put them all in middle. Then add these expressions to size, respectively position:


    dur = 3;
    linear(time,inPoint, inPoint+dur,[0,0], [100,100])


    seedRandom(index,true)
    dur = 3;
    cWidth = thisComp.width;
    cHeight = thisComp.height;
    rect = thisLayer.sourceRectAtTime(time,true);
    thisWidth = rect.width;
    thisHeight = rect.height;
    outSide = Math.round(random());//Here we decide if it goes out vertically or horizontally
    x = outSide == 0 ? Math.random() < 0.5 ? cWidth+thisWidth/2 : - thisWidth/2 : random(cWidth);
    y = outSide == 1 ? Math.random() < 0.5 ?cHeight+thisHeight/2 : -thisHeight/2 : random(cHeight);
    linear(time, inPoint, inPoint+dur,value,[x,y])

    Set the dur variable to how much time you want them to travel.

    Then set the duration for each layer, in the timeline, equal to what dur variable you chose.
    Select all layers, right click, keyframe assistant>distribute layers. Check overlap only if you want them to overlap.
    You should now have what you wanted.

    Andrei
    My Envato portfolio.

Page 30 of 65

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