Copy link to clipboard
Copied
In Adobe illustrator is there any possibility to access it layers and children in Qt?
OR
is there any option to communicate between an extended javascript via UDP to a Qt Application?
Cheers
Nidhin
Copy link to clipboard
Copied
Sorry, I am not familiar with any of this, only thing which comes to mind is ExtendScript javascripts can be executed by external programs which causes Illustrator to do work, and also those javascripts can execute external executable files which can bring the control back to other applications in the flow.
I'm not aware of an interface for use with Qt and its UDP protocol, however.
Copy link to clipboard
Copied
Hi Silly-V
Thanks for the reply. I can't take Illustrator instance in ExtendedScript unless I selected the target as below. If I select this as my target, then Socket is not working. If it is the first option, ExtendedScript toolkit Cc, then UDP is working. I want UDP for Illustrator.
Cheers
Nidhin
Copy link to clipboard
Copied
I hope someone who knows more than I on the subject can contribute to this challenging issue.
Copy link to clipboard
Copied
Why do you want to use UDP? It's an unreliable transport mechanism, intended for stuff like streaming video where transmission errors are acceptable.
You don't say what OS[es] your app runs on or the complexity of the operations you want to perform, but here's a couple options:
1. Use the OS's native IPC mechanism (Apple events on Mac, COM on Windows) to talk to Illustrator. You'll find the Illustrator API docs at https://console.adobe.io/downloads/ai under 'Scripting'. Look to the Qt docs and community for how to call OS APIs from your Qt app. (e.g. A common solution on Macs is to use QProcess execute an AppleScript via osascript; limited and slow, but sufficient for simple tasks.)
2. Use Adobe's CEP to embed a basic Node.js HTTP server in a custom panel which your app can then talk to same as it would a web service. Example here: https://medium.com/adobetech/how-to-build-a-node-js-server-in-a-panel-ba1d63ea67e2
Copy link to clipboard
Copied
Apologies,
I am using windows 7. I use Adobe ExtendedScript for illustrator side. Not used node.js. I wonder, if I use node.js, can I get the illustrator instance in it. I don't have huge data to be transferred, only texts and in best case, images.
Cheers
Nidhin