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

python to adobe jsx?

Community Beginner ,
Dec 02, 2022 Dec 02, 2022

Does anyone know the best way (or if there is a way) to pass/translate python commands into after effects javascript? Looking for a way to run python commands within after effects but assuming i'd need to translate to javascript first 

TOPICS
Scripting
517
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 ,
Dec 02, 2022 Dec 02, 2022

Not sure what you want to achieve. If you have some algorithms implemented in Python, you should really reemplement it in Javascript.

If you can assume that there is a Python interpreter installed on all systems, on which you want to execute your script, you could use system.callSystem to execute the python interpreter from the command line.

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
LEGEND ,
Dec 03, 2022 Dec 03, 2022

Could be tricky since you'd have to wait for the Py stuff to finish its thing and then transfer the data. It would probably be much simpler the other way around - run Py, generate the data, run a separate AE script to parse/ import/ whatever it. For anything moree specific you have to explain what you are actually trying to do. Such generic "Can I... do this and that?" questions never go anywhere. The devil's in teh details, as usual.

 

Mylenium

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 ,
Jan 27, 2023 Jan 27, 2023
LATEST

You will definitely want to rewrite in JS, unless you have something that has to be done in Python, you can communicate via system.callSystem() in ExtendScript or Node.js child_process module in CEP panels.

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