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

python to adobe jsx?

Community Beginner ,
Dec 02, 2022 Dec 02, 2022

Copy link to clipboard

Copied

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

Views

179

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

Copy link to clipboard

Copied

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.

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

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.

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