Forum Replies Created

Page 24 of 24
  • Scott Mcgee

    September 29, 2016 at 7:04 pm in reply to: Separating expressions using .text.sourceText

    I have 9 colours, 15 logos and 3 bars and 3 hashtags

    What I want to do, when using the editable text in even after effects (For speed), or to be used in.

    Type into a text box that affects the following (On and Off)

    Which logo is selected
    Which Bar is selected
    Which hashtag is selected
    Which colour is selected

    This this expression works fine.

    Then the bars need to animate on, this is easy as there is nothing that needs to be affected, other than a delay, which I mention below.

    Because the final result can be 3-13 seconds long overall depending on what we want it to be. I want to add a text box too which I can enter a value that will delay the bar and logo before it comes on at a set time.

    This expression works fine.

    I finally want to assign a ramp up (0-100%) opacity to the logo aswell which is also affected by a delay expression.

    This expression works.

    So overall. I will select a colour (Pink, red, green etc), the bar will animate on (Left, right or bottom) and the logo (which is one of the 15 selected( 5 for left bar, 5 for right bar and 5 for bottom bar) will fade up for a second after the bar has animated on.

    I couldn’t combine all three expressions into the opacity to work with my controllers and sourceText boxes. So I figured another way to fix the issue…I’ve used an expression that hides the logo outside of the comp now assigned to the position. Then merged the parseFloat expression with a delay expression to the sourceText box.

    If there is a way to combine the above three expressions that would be cool, as I only have to worry about one whole expression…But I’ve figured a work around if not.

    Sorry for the piss poor explanation and waffling, I’m better at showing than explaining, but I don’t have the project in front of me at the moment.

  • Scott Mcgee

    September 29, 2016 at 9:33 am in reply to: Separating expressions using .text.sourceText

    So i’m now delving into more complex territories and require further assistance from any one who can help.

    I am using an Opacity Controller (Keyframing 0 – 100 over a second)

    I’ve then assigned the expression to work with a txt layer to assign an amount for it’s delay.

    delay = txt = thisComp.layer(“Amount”).text.sourceText.value;
    n = parseFloat(txt);

    if (isNaN(n)) value else n;

    op = thisComp.layer(“OPACITY CONTROLLER”).opacity;
    d = delay*thisComp.frameDuration*25;
    op.valueAtTime(time – (d+1))

    Work brilliantly

    Then I want to add this expression

    input=thisComp.layer(“[Station]”).text.sourceText;
    if ( (input == ‘Liverpool Bottom’) | (input == ‘liverpool bottom’) | (input == ‘LIVERPOOL BOTTOM’) | (input == ‘Liverpool bottom’) | (input == ‘LVB’) | (input == ‘lvb’) == 1 ) value else 0;

    These both work separately really well. I’ve tried mashing them together like the below expression. So that when I pick a station, it will turn that one on or off. Then add an amount for the delay on the opacity controller, to assign the time length.

    txt = thisComp.layer(“Opacity”).text.sourceText.value;
    n = parseFloat(txt);
    if (isNaN(n)) {op=value} else {op=n}
    input = thisComp.layer(“[Colour]”).text.sourceText;

    Any idea’s?

    With me not being versatile in Java, I don’t know whether op is a function that I can change to a randon letter, but there seems to be some conflict somewhere in merging them together.
    if((input == “red”) | (input == “Red”) | (input == “RED”)) op else 0

    <b>delay = txt = thisComp.layer("Amount").text.sourceText.value;
    n = parseFloat(txt);

    if (isNaN(n)) value else n;

    op = thisComp.layer("OPACITY CONTROLLER").opacity;
    d = delay*thisComp.frameDuration*25;
    op.valueAtTime(time - (d+1))</b>

  • Scott Mcgee

    July 15, 2016 at 7:50 pm in reply to: Separating expressions using .text.sourceText

    If there was a way to simplify it, that would be cool.

    But that worked a treat.

    Thank you.

Page 24 of 24

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