Forum Replies Created

Page 20 of 24
  • Scott Mcgee

    July 21, 2017 at 12:31 pm in reply to: Animated number transition issue

    Slider Control value can only go to 1,000,000 max.

    Just use point control and use the expression effect(“Point Control”)(“Point”)[0] in your source text. (Just incase [0] refers to the x value, so change this number to animate)

    This can go passed 1,000,000 and to the value you require.

  • Scott Mcgee

    July 18, 2017 at 8:28 am in reply to: Selection which objected will show.

    I understand what you mean, but I don’t know a simpler way of accomplishing that.

    I did something similar with constituency maps, when a station typed in their station and constituency. It would turn it 100% and put it into the designated position. If it wasn’t defined it would be 0% and hang off the board, but that’s no different than what I offered above.

    I built a weather project, that is updated twice a day and I have 8 stations 8 location per station to update. That include weather icons, temperature, windspeed, wind direction. with a 5 day forecast at the end. This is a massive project, using a data file like you’ve suggested using. It’s took 3 weeks to build, but it’s flawless when the data is updated.

    If someone can offer a simpler solution, I’ll keep my eyes peeled to this post, because I’m always trying to shave time off my builds to create templates faster, but based off the research I had to do to get the weather project built. I think the above might be your only option.

  • Scott Mcgee

    July 18, 2017 at 7:16 am in reply to: Scale related to postion

    I came across this trying to find someway of getting the value to spread itself.

    This works spot on, so give this a try and see if it’s what you want.

    f = 2; //factor to increase scale by
    min = 0; //distance in pixels from the center where the layer is at full scale
    max = 1000; //distance in pixels from the center where the layer is at ‘normal’ scale
    c = [thisComp.width / 2, thisComp.height / 2]; //center of the composition
    p = toComp(anchorPoint); //location of the current layer in the composition
    d = Math.abs((p – c)[0]); //distance from the center along the x-axis
    ease(d, min, max, f * value, value);

  • Scott Mcgee

    July 17, 2017 at 9:23 pm in reply to: Scale related to postion

    I haven’t figure it out the other way as in if it goes left (x<960), but if you /(number of choice) this reduces it.

    x = transform.position[0];
    if (x >960) [x-960,x-960]/5-[transform.scale[0],transform.scale[1]]
    else [transform.scale[0],transform.scale[1]]

    Just because I’ve got another job to work on, but if you figure it out let me know, if not you’ll find another post by me tomorrow with an answer probably.

  • Scott Mcgee

    July 17, 2017 at 8:28 pm in reply to: Expressions In Premier Pro

    Unless someone corrects me…No.

    But you can use expressions in After Effects and by using dynamic link or Essential Graphics that’s in CC 2017.2, you can trigger expressions in premiere.

    Working with 8 stations, I have to use that a lot so that I can swap logos and colours mainly for example, but I also use it to save huge amounts of time in Premiere.

    Sorry for the probably useless explanation, but you may want to consider this as an option if you know the basics of After Effects.

  • Scott Mcgee

    July 17, 2017 at 8:24 pm in reply to: Scale related to postion

    There is probably a better way to write this, but it works. If the eyes are in the centre and move left or right, they do get smaller based on the x Axis.

    This is going off if your eyes to start off with are at 100%

    x = transform.position[0];
    if (x >100) [x-100,x-100]-[transform.scale[0],transform.scale[1]]
    else [x, x]

  • Scott Mcgee

    July 17, 2017 at 12:17 pm in reply to: Selection which objected will show.

    I would do something on these lines.

    Create a text layer, copy and paste in your 1 – 3 – 3 – 1 – 2

    If it was 5×5 for example.

    You’d in your opacity of each Item.

    Say it’s row 2 I’d put the following expressions like so.

    column 1
    I = parseInt(thisComp.layer(“Text”).text.sourceText.split(“-“)[1])
    if (I >= 4) {100}
    else {0}

    column 2
    I = parseInt(thisComp.layer(“Text”).text.sourceText.split(“-“)[1])
    if (I >= 2) {100}
    else {0}

    column 3
    I = parseInt(thisComp.layer(“Text”).text.sourceText.split(“-“)[1])
    if (I == 1 | I >= 3) {100}
    else {0}

    column 4
    I = parseInt(thisComp.layer(“Text”).text.sourceText.split(“-“)[1])
    if (I >= 2) {100}
    else {0}

    column 5
    I = parseInt(thisComp.layer(“Text”).text.sourceText.split(“-“)[1])
    if (I == 5) {100}
    else {0}

    Then if you want to centralise on if it’s 4, I’d add an expression on the position layer like this or to a null and attach 1-4 to that.

    I = parseInt(thisComp.layer(“Text”).text.sourceText.split(“-“)[1])
    if (I == 4) xPos = 995
    else xPos = 915;

    [xPos,540]

    (Obviously change values to your preference)

    There are some methods where you could make this easier using thisComp.layer(index+1).name, put a text layer at the bottom of them label it 2 (For row 2)

    a = thisLayer.name – 1;
    thisComp.layer(“Text”).text.sourceText.split(“-“)[a];

    Paste this into source text, this will then use the layers name for which row you want.

    Then use the above expressions still for the columns but in order

    column 1
    I = parseInt(thisComp.layer(index+1).text.sourceText)

    column 2
    I = parseInt(thisComp.layer(index+2).text.sourceText)

    etc

    So when you duplicate, drag them above our example of row 2, 2 should label itself as 3…Then the others should correspond. Obviously you’ll have to alter positions, but if you use a similar method to attach to null (Label it in a similar method and use the index aswell), you shouldn’t have to do much hard work.

    Sorry for all the waffle, I can’t think of an easier way to explain it without sending you a built version, but I use this in building my weather projects. I had 8 to build with 8 cities, with a morning, afternoon and evening section. then also make a presenter version and a none presenter version. So this method saved me weeks worth of work. But also I can change stuff with ease and not have to rewrite my expressions.

    You also can use a time remapping aswell if you are putting numbers on jerseys, then use an expression to know which jersey to use in which of the columns, but my lunch hour is over, so if you want any help with that, happy to give you that expression later.

  • Scott Mcgee

    July 14, 2017 at 5:39 pm in reply to: D.getDate() “st” “th” “rd” “nd”

    And as tired as I was when I originally posted this I realised.

    Using this could help hahaha

    D = new Date(Date(0));
    D = new Date(D.getTime()+1*24*60*60*1000);
    D.getDate() + “/” + (D.getMonth()+1)

    Not gonna lie, have no idea how it works, other than getting the time of + 1 day, 24 hours, 60 minutes, 60 seconds, 1000 milliseconds.

    But this works to pick the next day and if that happens to be a new month. It changes the month aswell.

    Hurrah.

  • Scott Mcgee

    July 14, 2017 at 3:43 pm in reply to: D.getDate() “st” “th” “rd” “nd”

    I’m an idiot, because I was put them in separate brackets that was my issue

    if (Day == “31” && Month == “July”) {“August 1”}

    Then the below I set up to do “st” “nd” “rd” and “th”

    Unless someone has an easier solution, I’m fine with this way of doing it.

    month = new Array();
    month[0] = “January”;
    month[1] = “February”;
    month[2] = “March”;
    month[3] = “April”;
    month[4] = “May”;
    month[5] = “June”;
    month[6] = “July”;
    month[7] = “August”;
    month[8] = “September”;
    month[9] = “October”;
    month[10] = “November”;
    month[11] = “December”;

    D = new Date(Date(0));
    Day = (D.getDate());
    Month = month[(D.getMonth())];

    if (Day == “2” | Day == “22”) {“”+ Month + ” ” + Day + “nd”}
    else if (Day == “1” | Day == “21” | Day == “31”) {“”+ Month + ” ” + Day + “st”}
    else if (Day == “3” | Day == “23”) {“”+ Month + ” ” + Day + “rd”}
    else
    {“”+ Month + ” ” + Day + “th”};

  • Scott Mcgee

    July 4, 2017 at 9:20 pm in reply to: Variable increase expression over time

    this should work.

    valuea = 0;
    valueb = 15;
    valuec = 25;
    valued = 100;

    inPointa = 0;
    inPointb = 4;
    inPointc = 8;

    if (time < inPointa + 2){
    ease(time,inPointa,inPointa +2, valuea, valueb)
    } else if (time < inPointb + 2){
    ease(time,inPointb,inPointb +2, valueb, valuec)
    } else if (time < inPointc +2){
    ease(time,inPointc,inPointc + 2, valuec, valued)}

    There’s probably an easier way, but this is what I would use currently until I could figure an easier way.

Page 20 of 24

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