• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Automation Blocks - Date and Time

Contributor ,
Oct 20, 2024 Oct 20, 2024

Copy link to clipboard

Copied

I'm trying to figure out a way to appropriately render my output my files to a dated, and maybe hourly directory.

I know how to create an expression to write the date into a "Source Text" field.

//CampName and Date
D = new Date(Date(0));

//Today's Month
+ (D.getMonth()+1) + "/"

//Today's Day
+ D.getDate() + "/"

//Today's Year
+ D.getFullYear()

 

How can I get this expression into text blocks so I can connect it to my output path that I pipe into a "add to Ae render queue" block?

4k EXR to Queue.png

As always, any input is appreciated.

 

----------------------------

 

BTW, I just wanted to again say thank you for this extension. It has literally changed how I work. I've built a system to render my projects to specific folders and name them appropriately for various outputs. It has saved me hours/days of work and changed my productivity dramatically. I'm adding and changing the system all the time and it's been a revelation. Here's a snapshot of how deep it's gotten.

JFX Render System.png

This supports the following dialog. (I'm currently trying to automated the dated value in the Playlist Name)

RenderDialog.png

I've not had to enter an Output Module setting or Output To Path dialog in more than a year because of Automation Blocks.

RenderQueue Output Module Path.png

If you've not seen or used this extention, GET IT! I'm not a programmer, just a nearly 30 year user of After Effects.

TOPICS
How to , Scripting

Views

122

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 21, 2024 Oct 21, 2024

Copy link to clipboard

Copied

You can generate the date string with the Execute Code block:

Screenshot 2024-10-21 at 19.33.14.png

 

If you want the date in any other format and are not sure about the code, you can also ask ChatGPT like "please write a JavaScript function for me, which returns the current date in the following format..."

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 21, 2024 Oct 21, 2024

Copy link to clipboard

Copied

Would the "Exectue Code Block" allow the execution of python script outside of AE?

Cause that opens a whole new can of worms...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 22, 2024 Oct 22, 2024

Copy link to clipboard

Copied

LATEST

In Ae, with the Execute Code block you can also call the API function System.callSystem

With that function you can execute arbitrary terminal commands. This can also be a terminal command like

python filename.py

 

Here are some relevant infos from ChatGPT about the exact code you need (which sounds reasonable but I didn't test it)
https://chatgpt.com/share/67176a88-c5e8-8004-abcc-f8ea43c1cfc2

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines