Forum Replies Created

Page 15 of 24
  • Scott Mcgee

    February 1, 2018 at 8:19 am in reply to: Replace a word with another word.

    This might help.

    https://www.youtube.com/watch?v=a3YZzChyKsg

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • It is really bizarre…

    I’ve just had a try again, just incase I hadn’t tried that (I tried quite a few things).

    Unfortunately that didn’t work, I even tried purging the memory again, still nothing. It seems to only work if you either manually remove and replace, by importing a new file that is (Not using replace footage). The same goes for the script. If you get it to delete the layer and import a new file and put it in that layer. Works fine. Otherwise it takes the longest length and sticks with that.

    Just bizarre.

  • Dan wrote this for someone else…I can’t take credit

    var myComp = app.project.activeItem;
    var myTextLayer = myComp.layer(1);
    var mySourceText = myTextLayer.property(“ADBE Text Properties”).property(“ADBE Text Document”);
    var myTextDoc = mySourceText.value;
    alert(myTextDoc.font + ” / ” + myTextDoc.fontStyle);

    There’ll be something somewhere to define more, but I think it’s fontSize, fontColor etc.

    Hope this helps.

  • Hey Dan,

    I’m messing around with what you suggested a while back running a .jsx in command prompt. I’ve managed to launch aftereffects and a script, but is there a way to launch a script to change something in an after effects project without opening the project?

  • Scott Mcgee

    January 18, 2018 at 9:22 am in reply to: Position & Size of a word

    https://forums.creativecow.net/readpost/227/37008

    https://forums.creativecow.net/readpost/227/37558

    I know this thread is how to colour a single word, but this could point you in the right direction to maybe highlighting a singular word instead.

  • Scott Mcgee

    January 18, 2018 at 8:36 am in reply to: Position & Size of a word

    Someone was asking a different question, but the tutorial they posted should guide you in the right direction.

    https://forums.creativecow.net/thread/227/37693

    sourceRectAtTime()

    As long as you are on CS6 or above, this should help you achieve what you want. If not, if you search sourceRectAtTime(), there’s plenty of tutorials that can help, but he covers what I think you need.

  • Scott Mcgee

    January 18, 2018 at 8:26 am in reply to: Changing text Color after using SourceRectAtTime()

    If you are on 2017.2/3? I think 2017.2 or higher. Use essential graphics and add a colour fill that you can change the colour of in Premiere.

    If not, based on Evan’s tutorial…Use fill still, but tie this in with a text layer and use a hex expression for the fill effect.

    You could set up your “Text” layer (source text) add this to the expression

    “0x” + text.sourceText;

    Then when you copy and paste the hex code it will automatically add the 0x at front.

    Then use this expression for the fill.

    txt = thisComp.layer(“Text”).text.sourceText;
    r = txt >> 16;
    g = (txt & 0x00ff00) >> 8;
    b = txt & 0xff;
    [r,g,b,255]/255

    Then like you change the names in premiere. Head over to the Master Effects Control and type in your hex code or copy and paste.

    Alternatively, if you are only wanting a handful of colours like I do…I set up and if or else for 9 colours. So if I type red, I get the red I want and so forth.

  • face and palm have just met.

    Thank you

  • Not a problem.

    To be fair I learnt all I have from Dan’s https://www.motionscript.com, he has a few links to external places. Youtube and here has been a big help.

    https://www.jjgifford.com/expressions/basics/index.html This place is quite good, some of the java has change since then, but it’ll still work.

    hope that helps getting you started.

  • Personally I wouldn’t even bother using a slider, if that’s all you want to use it for. I’d just copy and paste this into your source text and adapt.

    tStart = inPoint;
    startCount = 0;
    endCount = 3000000;
    countDur = 14;
    t = Math.max(time-tStart,0);
    Math.round(linear(t,0,countDur,startCount,endCount))
    stolen from Dan Ebberts

    To adapt I’d create two additional text layers I’ve called them “End Count” and “Max Duration” to match Dan’s work and added a few safety features.

    tStart = inPoint;
    startCount = 0;
    endCount = parseFloat(thisComp.layer(“End Count”).text.sourceText);
    if (isNaN(endCount)) endCount = “0”;

    countDur = parseFloat(thisComp.layer(“Max Duration”).text.sourceText);
    if (isNaN(countDur)) countDur = “0”;

    t = Math.max(time-tStart,0);
    Math.round(linear(t,0,countDur,startCount,endCount))

    I’ve just added that if the person you are giving this to enters words or nothing, it’ll default to zero.

    Then in Essential Graphics, you can put the source text for these two layers into it instead and they just have to type the number in for Max Number and how long they want it to be…(There’s no way to extend the comp, so remind them what the max length is. Or again you can add a default, so if they go above that number it’ll only go as big as the comp).

    Just because it took 2 secs, the below expression. I’ve added that feature as well (highlighted in black). Just change 20 to the max length so they can’t go above it, but they can go less if they ever need to.

    tStart = inPoint;
    startCount = 0;
    endCount = parseFloat(thisComp.layer(“End Count”).text.sourceText);
    if (isNaN(endCount)) endCount = “0”;

    countDur = parseFloat(thisComp.layer(“Max Duration”).text.sourceText);
    if (isNaN(countDur)) countDur = “0”;
    if (countDur > 20) countDur = “20”;

    t = Math.max(time-tStart,0);
    Math.round(linear(t,0,countDur,startCount,endCount))

    Hope this is of use to you

Page 15 of 24

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