Forum Replies Created

Page 17 of 24
  • Hey Guys,

    This is a brill expression, but for some unknown reason it doesn’t like paragraphing…Is there a little bit more that can be added to the expression to take into account for this?

    I’m taking a stab in the dark that it’s because of this if (c == ” “) break; is just looking at each work in a row, but as soon as I paragraph, if it’s the first word, it doesn’t work, but if you hit space, the word color fills but not the @ or #.

    Other than that I’m clueless.

  • Scott Mcgee

    October 3, 2017 at 8:29 am in reply to: sourceRectAtTime Proximity Detection

    Solved my problem.. It was working fine, but it was the anchorPoint that was causing my problem.

  • Scott Mcgee

    October 2, 2017 at 5:48 pm in reply to: Referencing Essential Graphics Presets in Expressions

    Just got in front of my machine and it works fine. It works as if it was After Effects. I have a lot of stations to look after and can’t be bothered making one for each station…So I use if/else statements alot, or try/catch (Depending on if I need to). So I can provide one template that each station. Types into the sourceText (I label it Station), their station and it hides everything else and only uses their station logo, web address etc.

    If you add the sourceText for both lines into essential graphics.

    I also have a double line like yourself and I use a lot for Vox Pops and subtitles. So you shouldn’t have any problems with the below working. No expressions need to be added to the sourceText, it just needs to be added to the opacity. Then drag the sourceText’s into essential graphics. Again doesn’t matter what you label them as, as it references what they are called in the AE Comp, not essential graphics.

    If you add this expression to the opacity of the line 1 background.

    txt = thisComp.layer(“Line 2”).text.sourceText;
    if(txt.length<=0)100 else 0;

    and this to the Double line back ground.

    txt = thisComp.layer(“Line 2”).text.sourceText;
    if(txt.length>0)100 else 0;

    When the sourceText of line 2 is deleted and you hit enter. It’ll use the line one background. If you enter any text, it’ll use the double background.

    Hope this works for you.

  • Scott Mcgee

    October 2, 2017 at 4:46 pm in reply to: Referencing Essential Graphics Presets in Expressions

    I’ve used it a lot but not tried check, I use sourcetext to trigger.

    But if you can add a checkbox to essential graphics (not at a machine to try)

    Simplest option would be to do a opacity expression like below.

    If(effect(“Checkbox Control”)(“Checkbox”) ==0) 0 else 100;

    If you just want to do text this should do it.

    If(effect(“Checkbox Control”)(“Checkbox”) ==0) “” else text.sourceText;

    Too be fair it’d probably be simpler for me to do it that way, but I’ve gotten into the habit of typing on/off in a sourceText expression that does the exact same thing.

  • Scott Mcgee

    September 26, 2017 at 10:43 am in reply to: Is it possible (Character to Anchor Point)

    Hey Dan,

    If there’s a more accurate way brill…If not worked enough for me to fiddle with it.

    I want the anchor to sit on “-“, as I have a position expression so it sits directly central on another layer…but just altering the anchorpoint by -33, it sits exactly on the line and works brilliantly.

    I tried manipulating s[0] + “-” but just couldn’t find an easy way other than to -33.

    s = value.split(“-“);
    if (time < 0)
    s[0] + “-”
    else
    value

    r = sourceRectAtTime(-1,false);
    x = r.left + r.width;
    y = r.height/2 + r.top;
    [x-33,y]

    No sweat if not, it works which is the main thing.

  • Scott Mcgee

    September 26, 2017 at 10:25 am in reply to: Hex Code from text?

    Bizzarely, as I didn’t test it and now need to use this…I got a luminous green as well, but with Dan’s new expression I got pink.

    txt = 0x0000ff;
    r = txt >> 16;
    g = (txt & 0x00ff00) >> 8;
    b = txt & 0xff;
    [r,g,b,255]/255

    This strangely works for me.

    Dan if you have a minute, is there a reason why the three expressions (Similar) although people have responded that they work, it reacts differently for others…I am scratching my head here.

    I only took a stab in the dark by removing the c and just replacing it all with txt and it worked first time.

    Bizarre.

  • If you use true comp duplicator, then its a bit easier.

    all i can advise thinking off top. Animate Precomp A instead, unless there is a reason. Add slider to Precomp A. So when you duplicate so does the slider control. time remap expression will always look to the attach slider. so you can change these individually.

    if you want to control each of these from the master, just pick whip the duplicate to a new slider in the master comp. A little messy but get around the duplication issue.

  • Precomp A – Inside Precomp A, set all images to 1 frame each
    Main Comp – Add Null object, doesn’t really matter what you add, but a Null is invisible. Then add a slider to the Null.
    Precomp B – Add time Remap to Precomp A, with the following expression below.

    sliderPos = comp(“Main Comp”).layer(“Null”).effect(“Slider Control”)(“Slider”);
    framesToTime((Math.round(sliderPos)))

    I’m going based off memory at the moment, but that should work for you.

  • Scott Mcgee

    September 20, 2017 at 6:41 pm in reply to: Numerical order

    That worked a charm.

    Thank you very much.

    Now too complicate things.

    Is there a way.

    a = [12,5,9,10,10,3];
    a.sort(function(a, b){return a – b});
    a.toSource();

    Like above, say you have 2 of the same number in an array. It’s not so much of an issue for this example, but what I want to finally do. If two numbers are the same, it will look at a secondary number to determine which 10 in this case goes in order of the other.

    Is it possible to if([]&&[] ==true) look at another part to determine which goes above the other.

    All I can think is. Split

    A = 10-9
    B = 10-5

    If[A.split(“-“)[0] == B .split(“-“)[0]) {
    C = [A.split(“-“)[1],B.split(“-“)[1]]
    C.sort(function(a, b){return a – b});
    } else {
    C = [A.split(“-“)[0],B.split(“-“)[0]]
    C.sort(function(a, b){return a – b});
    }

    I know this probably isn’t right without testing, but it looks right in my head…But too do this with 24 numbers would break my head.

    If there is no easy way…I’m just going to leave it and say I can’t build this. Spend some money get an API from Press association rather than trying to do this cheap and expecting someone to fill 144 boxes of Data.

    At least to fill Wins, Draws and Goal Difference, at least reduces this, but the poor sod has to do this weekly for 2 sports and 6 leagues in each of them. So I’m hoping I can build something that will alter text.sourceText from above expression. POINTS-GD-W-D-L-TEAM Then whatever the order the array sorts…It puts the rest of the data into the other fields.

    The theory works, it’s just now if Points are the same it looks at GD instead.

    I’ll have one comp that they type the data in and comp two is the MASTER.

    I know I’d be best writing a script, but it’s time more than anything.

  • Scott Mcgee

    September 19, 2017 at 7:32 am in reply to: Numerical order

    Figured out what the issue is, but could anyone suggest how to fix this?

    array = [12,5,9,10,3]
    array.sort()[0]

    It appears to look at the first number and orders them that way

    10
    12
    3
    5
    9

    Is there something additional that might I’m missing?

Page 17 of 24

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