Forum Replies Created

  • Shawn Baden

    January 5, 2018 at 2:28 am in reply to: Simple Postion Random Expression

    I’ve realized that it is pulling the value at frame 0 every time I change the length of my text string. In addition it creates the same “random” sequence of numbers for each string length. A string character count of 14 always starts with 7. The only way around this that I can think of is to randomly choose a frame in the sequence to pull the value from. This I’m guessing will just run into the same random() problems.

  • Shawn Baden

    January 4, 2018 at 10:51 pm in reply to: Simple Postion Random Expression

    I’ve tried changing the thread to 0, 1, 5… I’m changing the value of the sourceText from 4 letters to 15 letters and it’s doing the same thing.

  • Shawn Baden

    January 4, 2018 at 8:27 pm in reply to: Simple Postion Random Expression

    I’m trying to get a random number between 1 and length of text – I have this working. It gives me a random number for every frame. I only want it to find a random number once and keep the value. I’ve tried using seedRandom but it isn’t behaving the way I would expect. It gives me roughly half the value of the text length every time rather than from 1-10.

    max = thisComp.layer("myLayer").text.sourceTextlength + 1;

    seedRandom(1, true);
    Math.floor(random(1, max));

  • Shawn Baden

    February 23, 2017 at 11:49 pm in reply to: Scripting in Premiere Pro – Where to start

    Hey Ryan,

    Not sure where you are with your Premiere scripting but I’m in the same boat as you. I am very familiar with scripting for AE and am now trying to fumble my way blindly through scripting for Premiere.

    I’m using Extendscript, like I do for AE and running the scripts from there – I can’t find a way to run the scripts from inside PPro. The only way I know to run them from within PPro is to build a panel – I’ve been trying to figure that out as well.

    There is now a little bit more documentation but still not much. Adobe has done a very poor job of supplying documentation. Here are a few links straight from Adobe:

    Very limited api:
    https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/payloads/api_doc.html

    Sample scripts:
    https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/jsx/Premiere.jsx#L314

  • Shawn Baden

    September 29, 2014 at 5:52 pm in reply to: Read a json-file

    Once you’ve used JSON.parse() how do you call/retrieve the data?

    I’m using something like: obj.itemOne[0].item but am getting undefined

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