Forum Replies Created

  • Breton Brander

    December 1, 2023 at 6:35 pm in reply to: Async in AE extendscript?

    Hi Dan,

    I believe you can accomplish what you’re hoping for like this:

    Solution 1:

    The solution below runs a command and does not wait for the result to return. Instead it outputs the result to a text file on your desktop.

    var command = ‘echo “Hello world!”‘
    var outputFile = “~/Desktop/output.txt”;
    system.callSystem(‘nohup ‘ + command + ‘ > ‘ + outputFile + ‘ 2>&1 &’)

    Solution 2:

    The solution below runs a command and does not wait for the result to return. The result goes nowhere so you won’t know how the command resolved.

    var command = ‘echo “Hello world!”‘;
    system.callSystem(‘nohup ‘ + command + ‘ > /dev/null 2>&1 &’)

    Source: https://wordpress.com/post/bretonbrander.wordpress.com/3548

    (I share similar ExtendScript solutions at the website linked above too)

  • Breton Brander

    February 10, 2023 at 2:15 am in reply to: changing composition magnification ratio?

    Seeing as this thread is almost 15 years old, I’m guessing no one has found out how to change the zoom level with extendscript.

    I haven’t found a way to do it yet. Might not be supported 🙁

  • Breton Brander

    January 22, 2023 at 12:06 am in reply to: ExtendScript: Add Keyframe to Range Selector?

    Thanks for the help Dan!

    Your reply helped me figure out that my range selector was set to “Index” and that’s why I couldn’t access it with ExtendScript 🙂 (because the property was ‘hidden’)

    Range Selector Percentage:

    myLayer.property(“ADBE Text Properties”).property(“ADBE Text Animators”).property(“ADBE Text Animator”).property(“ADBE Text Selectors”).property(“ADBE Text Selector”).property(“ADBE Text Percent Start”)

    Range Selector Index:

    myLayer.property(“ADBE Text Properties”).property(“ADBE Text Animators”).property(“ADBE Text Animator”).property(“ADBE Text Selectors”).property(“ADBE Text Selector”).property(“ADBE Text Index Start”)

  • Breton Brander

    September 5, 2022 at 7:26 pm in reply to: Examples of After Effects Scripts

    I share handy snippets & functions here:

    https://bretonbrander.wordpress.com/blog/


    NT Productions posts YouTube tutorials on small coding projects:

    https://www.youtube.com/c/NTProductions/videos


    Neither of these is exactly what you’re asking for, but hope you find some of it helpful 🙂

  • You could try something like this. It should work pretty will with Dan Ebbert’s bounce expression:

    var influence = 450; //How much do you want to influence the rotation;
    var squahLimit = 200; // What’s the maximum allowed rotation;

    //var newSquash = transform.scale + transform.position.velocityAtTime(time)/(10000/influence);

    var newSquash = transform.scale + [transform.position.velocityAtTime(time)[0]/(10000/influence),transform.position.velocityAtTime(time)[1]/(10000/influence)];

    if (newSquash > squahLimit) newSquash = squahLimit
    else if (newSquash < squahLimit*-1) newSquash = squahLimit*-1;

    transform.scale + newSquash - [100,100]

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