Hello all,
Let’s say I’ve created a python app into a .exe/unix executable on Windows/Mac that prints out some information.
In the CEP days, you could execute and read output data for this via something like:
const {exec} = require('child_process');
exec('"'+exePath+'"', (error, stdout, stderr) => {
});
Is there any possible way to do this in UXP, that is running an executable app and getting information it prints/errors?
2 Likes
It sounds like a pretty dangerous thing to allow developers to do if I’m honest. Perhaps that’s why they are moving away from it.
Maybe a more safe alternative is to allow for communication with existing external processes instead of spawning them in using the extension.
It might also be helpful to mention what you are trying to do with another process that the API can’t already do. Maybe it’ll be useful enough to suggest as a feature.
Only possible through Hybrid Plugins which Premiere Pro doesn’t have yet. Once they do, you can write your own C++ Hybrid function to execute CLI commands or communicate with other processes.
Bolt UXP has a Hybrid Plugin execSync() example ready to go that works in Photoshop and InDesign, but not Premiere Pro yet until Hybrid Plugins are added to Premiere Pro