Forum Replies Created

Page 2 of 2
  • Ben Christie

    December 9, 2015 at 12:27 am in reply to: Writing “Alert” to Text File

    Hey Dan,

    Also this is similar question in relation to the alert that you might be able to help with.

    I have the following code that works really well at getting the information from my function but it keeps over writing the file with the new keyframe if I have five keyframes. If I have one it works well but if I have multiple they over write each other. I’m sure it’s because of the way I am calling the information from my function but I’m not sure how to fix it.

    Any help would be great. Thanks!

    var myFileName = "example.txt";
    var myFilePath = "~/desktop/" + escape(myFileName);
    var myMessage = "keyframe: " + i +" Cubic-bezier["+x1r+", "+y1r +", "+x2r+", "+y2r +"]";
    var myFile = new File(myFilePath);
    myFile.open("w");
    myFile.write(myMessage);
    myFile.close();

  • Ben Christie

    December 9, 2015 at 12:11 am in reply to: Writing “Alert” to Text File

    Dan,

    This is exactly what I’m looking for!!!

    Is there a way to name the text file your AE project title automatically instead of example?

    Would I use the following code somehow?

    Thanks!

    myProjName = app.project.item(index).name;

  • Ben Christie

    December 4, 2015 at 11:01 pm in reply to: Folder Structure Script

    I’m actually fairly interested to see how to call a structure from a text file! Could you possibly share that script?

    Thanks!

  • Ben Christie

    December 3, 2015 at 7:19 pm in reply to: Change font weight in scripting?

    Thanks Dan!

    This worked perfectly, I was actually just using the wrong name like you thought. Sometimes it’s best to start with what you know.

    Thanks again!

    Ben

  • Ben Christie

    July 28, 2015 at 5:27 pm in reply to: Applying animation presets to solid via scripting

    Wow this helps a lot. I Really appreciate it!

  • Ben Christie

    July 28, 2015 at 1:03 am in reply to: Applying animation presets to solid via scripting

    That would make a lot of sense. That would allow my colleagues to kind of set it up themselves which would be great.

    Unfortunately I’m not quite sure how to do that, let alone apply a preset from a defined folder.

    Would it be something similar to this?

    var thePreset = new File(“/Applications/Adobe After Effects CC 2014/Presets/PluginResource/Custom Preset.ffx”);

    if (thePreset.exists == true) {
    theLayer.applyPreset(thePreset);
    } else {
    // here would be the function to have the user set the custom path and then save it??
    }

Page 2 of 2

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