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

Automation Blocks - Run Script...

Contributor ,
Nov 03, 2022 Nov 03, 2022

The tracking software I use (Syntheyes) exports out .jsx files and creates scenes inside AE. It's great! With Automation Blocks, I'd love to run the script and do a bunch of repetitive tasks after it's imported and clean up the scene.

 

Is there a way to launch a specific .jsx script from an animation block?

RunScriptOptions.pngexpand image

TOPICS
Scripting
2.0K
Translate
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

correct answers 1 Correct answer

Contributor , Nov 17, 2022 Nov 17, 2022

Drag, Ok. I do have a workaround for now. I'll very much be looking forward to the next version.

TrackImportWorkaround.pngexpand image

Translate
Community Expert ,
Nov 04, 2022 Nov 04, 2022

Hi Mike,
it is on my feature request list for future versions but not available, yet. The only thing you could do right now is to save a jsx in Ae's scripts folder, such that it shows up in the Ae menu File->Scripts (same as we do for keyboard shortcuts). Then you can use the block Execute Menu Command to execute that script.
Workflow could be
- always keep a script with name say "tempscript.jsx" in your scripts directory (it needs to be there already when you launch Ae such that it shows up in the Ae menu).
- when you need to execute a script overwrite the file tempscript.jsx by that script and execute the menu command "tempscript.jsx".

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
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 ,
Nov 04, 2022 Nov 04, 2022

I'll look into this for sure. I'll get thru this one too.

ScriptFromScript.pngexpand image

 

It's always something. <smirk>

Translate
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 ,
Nov 04, 2022 Nov 04, 2022

And in researching this online I came across this from 2 years ago when having an issue with kBar

 

https://community.adobe.com/t5/after-effects-discussions/kbar-can-t-quot-run-script-file-quot/td-p/1...

 

Sooooo.

Translate
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 ,
Nov 17, 2022 Nov 17, 2022

Do you get this when running the menu command from AB? Then I guess at the moment there is no workaround, unfortunately...

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
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 ,
Nov 17, 2022 Nov 17, 2022

Drag, Ok. I do have a workaround for now. I'll very much be looking forward to the next version.

TrackImportWorkaround.pngexpand image

Translate
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 ,
Nov 18, 2022 Nov 18, 2022

That's clever!

I see that it is not ideal, but probably the best thing you can do for now.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
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 ,
Mar 13, 2024 Mar 13, 2024

Hello,

 

Just wanted to check in on this to see if you've been able to address this in the past year and a half? I did end up with the workaround, but didn't end up working with it since it ended up being unwieldy when in the middle of production.

FindLaunchSpecificJSX.pngexpand image

The script would be so great if "could" work.

WhichTrack.pngexpand image

 

Ended up with a "Run Script..." Kbar button that I would just path to thru a file dialog.

RunScriptKBAR.pngexpand image

Is there any way to have this little bit of script wrap around to make the jsx work?

 

If you have any new thoughts on this, they'd be greatly appreciated.

 

Mike

(still not a programmer)

Translate
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 ,
Mar 14, 2024 Mar 14, 2024

I am currently working on a feature to execute arbitrary jsx code from within Automation Blocks. It will be included in the next update. It is coming for both Ae and Pr. Here is a screenshot for Automation Blocks for Pr showing what it will be looking like (for Ae it will look similar, but instead of "Sequence" you will have var types like "Comp" or "Layer"):Screenshot 2024-03-14 at 10.07.24.pngexpand image

Note that in the "execute code" parameter, which in the screenshot just contains a text block, you can plug any other blocks, too. Hence, you could also read the jsx from a file, store it in a variable and then pass this variable content to the "execute code".

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
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 ,
Mar 14, 2024 Mar 14, 2024

So much looking forward to this. Thanks for the update!

 

(any idea on when you'll be putting this out there?)

Translate
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 ,
Mar 15, 2024 Mar 15, 2024

My current estimate would be in a few weeks, depending on whether there are more issues showing up during testing. If you want to participate in the tests, you can also send me an email to info@mamoworld.com 🙂

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
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 ,
Apr 04, 2024 Apr 04, 2024

Update: I just published Automation Blocks 1.1.000 which also includes the Execute Code block.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
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 ,
Sep 23, 2024 Sep 23, 2024

So I was able to use the new Execute Code block to get an importer that works great! As always, thank you so much. As with any piece of code, I'm looking at some feature creep.

JSXLauncher.pngexpand image

This creates a handly little dialog that displays the contents of the directory. What I'm now looking to do is shorten this list down to JUST the .jsx files since nothing else is applicable in this dialog.

FullListofFilesInAB.pngexpand image

 

This is where (as always) my lack of real programming skills doesn't allow me to parse the "list" of files. When printing the output of Track Name I get a comma delinated line of files that I tried writing out to a csv, but the items all showed up in cell A1.

 

There's got to be a better way! Any assistance you can give, as always, will be appreciated.

Translate
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 ,
Sep 24, 2024 Sep 24, 2024
LATEST

you can do
1) create an empty list, say with name "filtered list"

2) loop over your list of all files and for each of them do
     if entry ends with jsx add it to the "filtered list"

Now you can pass "filtered list" to your input dialog.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
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