Forum Replies Created

Page 5 of 24
  • Scott Mcgee

    February 13, 2020 at 10:09 am in reply to: increments for loop

    for(var i=1, i<b.length, i++){
    var j = for every increment of 5, increment by 1 (so if 1-5 = 1. if 6-10 = 2);
    if( i = increments of 5){
    b[i] = row[j].add ("iconbutton", undefined, f, {style: "toolbutton"});
    });
    }

  • Scott Mcgee

    February 13, 2020 at 10:07 am in reply to: increments for loop

    don’t know what happened there . Must have caught delete on a portion of the code. This is the kinda thing I want to do

    for(var i=1, i

  • Scott Mcgee

    February 6, 2020 at 11:11 am in reply to: app.parseSwatchFile()

    Got it to work.

    var aseFile = File.openDialog();
    var data = app.parseSwatchFile(aseFile);
    alert(data.values);

    It treats it similar to a JSON file, that was where I was going wrong.

  • Scott Mcgee

    November 26, 2019 at 2:28 pm in reply to: A text based if else statement instead of a value based?

    in Opacity of the profile picture.

    if(thisComp.layer(“Username”).text.sourceText == “Anton”) 100 else 0;

    Then add this too each of the profile pics and swap them in

    Alternative to save hassle, label the profile picture layer Anton etc.

    And do it this way.

    if(thisComp.layer(“Username”).text.sourceText == thisLayer.name) 100 else 0;

    Then you can copy and paste the expression to all layers.

  • Scott Mcgee

    November 25, 2019 at 8:52 am in reply to: Expression to get Gradient Ramp to follow text size.

    sourceRectAtTime is what you need

    An example, this would be to put one of the anchors (start or end of ramp) in the top right corner.
    r = thisLayer.sourceRectAtTime();
    [r.left + r.width, r.top]

    When you resize or move position. The gradient sticks to the top right corner.

    Then apply again to your other anchor (start or end of ramp) to the opposite side and voila.

  • I’m not sure if there is another way of doing it, but I use regex. I’ve tried it a few other ways with no success.

    Now I’ve not tested below out, but with my plugin this works.

    your script with amend
    var importVideoExtension = (/\.(mp4|mpg)$/i);
    var a = Folder(filePath);
    if(a != null){
    var b = a.getFiles(importVideoExtension);
    var c = b.length;
    for(var i = 0; i < c; i++){
    imported[i] = importAFile(b[i]);
    imported[i].parentFolder = footage;
    }
    }

    my script that works incase you can you modify this if the above doesn’t work.
    var file_type = (/\.(mp4|mp3)$/i);
    var sourceFolder = Folder.selectDialog(“Select folder with source files”);

    var sourceFiles = sourceFolder.getFiles(file_type);
    var footage;

    for (var i = 0; i < sourceFiles.length; i++) {
    footage = app.project.importFile(new ImportOptions(sourceFiles[i]));
    }

  • Scott Mcgee

    September 30, 2019 at 9:21 am in reply to: Renaming Solid Layer (Expression or Script)

    Cheers Tomas,

    That expression and script saved me weeks of work, and even more so when I had to I had 24 hours to rebrand it all.

  • Scott Mcgee

    September 20, 2019 at 8:03 am in reply to: Horizontal scroll from specific starting position

    If I’ve read this right. You want to do something like this.

    Layer 1:
    xPos= (time * 150)-175 ;
    yPos = position[1] ;
    [ xPos , yPos ]

    Layer 2 +:
    padding = SPACE HOW YOU WANT IT;
    xPos = thisComp.layer(index-1).position[0] – thisComp.layer(index-1).sourceRectAtTime().width – padding;
    yPos = thisComp.layer(index-1).position[1] ;
    [ xPos , yPos ]

  • Scott Mcgee

    August 9, 2019 at 4:21 pm in reply to: Remove source after execution

    This was my issue

    I forgot to check this box.

    Because I use alerts to flag errors I only came about this, when I removed the alert and it finally told me I needed to check this box.

  • Scott Mcgee

    July 9, 2019 at 8:00 am in reply to: setSettings()

    Hey Tomas,

    Majority of the time I need mp4, but I have a few machines that will only take mpeg2 and a few other formats, none of which After Effects export as.

    I’m currently using “queueInAME()”, which is fantastic until someone asks for a file for a drive that require mpeg2. Now if I have AME already open I guess I could set up a watch folder, but I like that the script launches AME and if set as true. Automatically starts exporting, but it uses the last used profile.

    I do see the benefit in watch folders, but it’s a lot of videos a few different formats and I want this plugin to be passed to a few colleagues as well who don’t have much knowledge of all this.

Page 5 of 24

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