Forum Replies Created

Page 22 of 24
  • Scott Mcgee

    June 26, 2017 at 11:22 am in reply to: Please correct this ae expression

    Not quite sure if you need such a complex expression. Something as simple as this would work on the opacity.

    time < inPoint;
    ease(time-inPoint,0,1,0,100)

    If you are wanting to change the value with ease without constantly having to go into the expression and change the start time or move the layers inPoint. I use a text layer because I need to change the value all the time and have this set up.

    s = parseInt(thisComp.layer(“Amount”).text.sourceText);
    if (isNaN(s)) s = 0;
    t = s + 1;
    ease(time,s,t,0,100)

    Hope this is of help.

  • Scott Mcgee

    June 16, 2017 at 7:59 am in reply to: $.evalFile (txt, tsv, csv, xml…etc)

    Genius,

    I replaced \r with another symbol that will never be used so I can use [0],[1],[2] and so forth.

    Cheers for the help.

  • Scott Mcgee

    June 15, 2017 at 7:16 pm in reply to: $.evalFile (txt, tsv, csv, xml…etc)

    Hey Dan,

    That’s just what I wanted, so I don’t have to worry about Excel exporting it with “”

    So now I have one last question. I’ve not done anything like this before so I haven’t the foggiest (I’ve tried something you put in another forum), I’m hoping you might have a solution.

    It now appears

    “””
    “RSS FEED”\r”
    “RSS FEED”\r”
    “RSS FEED”\r”
    “””

    Is there an expression to only read a single line?

    I have 3 text layers. In the feeds they contradict one another, which is why I would prefer not to do it this way, but I have to make the best of a crappy situation.

    I’ve included \r to paragraph it, but I don’t know how to get Text 1 to look at line 1, Text 2 to look at Line 2 and Text 3 to look at Line 3.

    I can’t substr it, as the character length will differ everyday so it needs to look at the line. I saw you gave an expression to “lineIdx”, I’ve tried playing around with it, with no success.

  • Scott Mcgee

    June 15, 2017 at 11:20 am in reply to: $.evalFile (txt, tsv, csv, xml…etc)

    Cheers Dan,

    Understandable.

    Ok, another route we could do, is have the machine convert the data to .txt

    But excel is exporting it like this.


    “Text1 = “RSS FEED”;”
    “Text2 = “RSS FEED”;”

    If I go in and manually delete the “” at the front and end of each line, this works fine. Otherwise it won’t work.

    Is there a way to convert this expression to look between “” on each line?

    $.evalFile(“filepath”);
    eval(“Text1”);

  • Scott Mcgee

    June 14, 2017 at 9:18 am in reply to: Word within a group of words

    Found it

    input = thisComp.layer(“station”).text.sourceText;

    if (input.indexOf(“Bristol”) != -1) {
    100
    } else {
    0
    }

    Just incase anyone else has this issue

  • Scott Mcgee

    June 13, 2017 at 7:55 am in reply to: Script to change color hex

    Color Control is what you need.

    Create a null object, call it “Color Controller”, or whatever you want to call it. Add your color control which is in the effects > expression controls.

    All you need to do is apply a fill to all items you want to be that specific color and pick whip them to the color controller.

    When you change the color then on your color controller, it will change all the items linked to it, with the same color.

  • Hey Tobias,

    Not sure what you are trying to do.

    The expression is fine, if you are wanting to change the input of Keyframe 2 with a value defined by your slider.

    but it doesnt work because the slider control itself has no changing value

    How do you want the value to change? Based off what you described firstly, your expression is fine.

  • I just about understand.

    when i googled and read the first line on the first page I opened

    A regular expression, regex or regexp[1] (sometimes called a rational expression)[2][3] is, in theoretical computer science and formal language theory,

    First thing I thought…I hate my life right now.

    But watched 1 youtube video, it seems straight forward.

    Thank you for explaining.

  • Genius Dan,

    Just because this is the first time, yourself or anyone have given me an expression that I couldn’t work out myself when reading it.

    Could you break this down please. As I haven’t the foggiest what any of the line 1 means passed r =. line 2 I get the gist and line 3 is a bit of a mystery aswell passed txt.replace.

  • Scott Mcgee

    April 5, 2017 at 12:11 pm in reply to: Listbox .selectedItem, .selection, .??????

    Got the answer (ish), need too fine tune, but it does what I need.

    //BTN: to apply selected listbox item
    var myBtn = w.add (“button”, undefined, “Apply”);

    myBtn.onClick = function(){

    var listSel = myList.selection;
    var myComp = app.project.activeItem; if(!myComp || myComp.typeName !== “Composition”) return;
    var n;

    for (n=0; n

Page 22 of 24

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