-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Illustrator plugin based on Bombino not calling JSX on Windows #16
Comments
Hi Eugen, your dependencies are all up to date so the issue isn't specifically a brutalism/bombino one, but rather the filepaths being untreated in your App.vue file during the loadScript(path) {
path = path.replace(/\\/gm, "/"); // POSIX
// Correctly loads a script regardless of whether Animate or regular CEP app
if (!/FLPR/.test(spy.appName))
this.csInterface.evalScript(`try {$.evalFile('${path}')} catch(err) {
alert(err)
}`);
else
this.csInterface.evalScript(
`fl.runScript(FLfile.platformPathToURI("${path}"))`
);
}, Without the regex above, you'll get IOErrors in scripting on Windows showing the paths don't exist likely due to Windows treatment of With the modified |
Hi Tom,
I also wanted to thank you this way, too!
That really solved it for me. Really great!
Just something I came across recently (maybe it helps you to improve bombino):
When signing I always get an error message that the signing service did not work.
I went in node_modules > bombino_commands and updated the lines with this service:
…-tsa http://timestamp.digicert.com <http://timestamp.digicert.com/>
After that signing worked again.
Affected lines starting at 212:
console.log(
`${utils.osPrefix}ZXPSignCmd -sign ./${path}-tmp ./${rootpath}/archive/${path}.zxp ./${rootpath}/archive/temp1.p12 ${password} -tsa http://timestamp.digicert.com/`
);
shell.exec(
`${utils.osPrefix}ZXPSignCmd -sign ./${path}-tmp ./${rootpath}/archive/${path}.zxp ./${rootpath}/archive/temp1.p12 ${password} -tsa http://timestamp.digicert.com/`
);
if (includeZip)
setTimeout(() => {
shell.exec(
`${utils.osPrefix}ZXPSignCmd -sign ./${path}-tmp ./${rootpath}/archive/${path}.zip ./${rootpath}/archive/temp1.p12 ${password} -tsa http://timestamp.digicert.com/`
);
}, 1000);
If it helps you I can post an issue on Github.
Let me know!
Best,
Eugen
P.S.: Have you seen my other plugin “OMATA AI”?
https://exchange.adobe.com/apps/cc/109684/omata-ai <https://exchange.adobe.com/apps/cc/109684/omata-ai>
It is similar to KlutzGPT. I started working on it in January. Justin Taylor was bit quicker than me with KlutzGPT.
I remember that you mentioned on the Bolt Discord that may Illustrator users would be interested in this.
It is not bad for writing scripts :)
On 5. May 2023, at 04:09, Tom Scharstein ***@***.***> wrote:
Hi Eugen, your dependencies are all up to date so the issue isn't specifically a brutalism/bombino one, but rather the filepaths being untreated in your App.vue file during the loadScript function and paths not being POSIX:
loadScript(path) {
path = path.replace(/\\/gm, "/"); // POSIX
// Correctly loads a script regardless of whether Animate or regular CEP app
if (!/FLPR/.test(spy.appName))
this.csInterface.evalScript(`try {$.evalFile('${path}')} catch(err) {
alert(err)
}`);
else
this.csInterface.evalScript(
`fl.runScript(FLfile.platformPathToURI("${path}"))`
);
},
Without the regex above, you'll get IOErrors in scripting on Windows showing the paths don't exist likely due to Windows treatment of \ characters in filepaths like C:\Users which become faulty strings of C:Users:
<https://user-images.githubusercontent.com/37279677/236364413-4e937e4c-acc2-4a07-bcce-73a022d3fef5.png>
With the modified loadScript snippet above Omata works as expected on Win10x64, AI 2022, CEP 11, Node 16.13.1 on my machine:
<https://user-images.githubusercontent.com/37279677/236364517-fde62d37-f075-4162-8d62-4a65a7e334f3.png>
<https://user-images.githubusercontent.com/37279677/236364520-66c3d689-6421-48b1-b6a9-ae3fd0ace6a2.png>
—
Reply to this email directly, view it on GitHub <#16 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAADIUZ2XSMYP53SIR2JSW3XERONTANCNFSM6AAAAAAXWFL63E>.
You are receiving this because you authored the thread.
|
Hi Tom,
Illustrator: there is a problem with my plugin on Windows (as it seems).
When trying to call jsx files with evalScript nothing happens. On Mac it works fine.
The plugin is based on Bombino (by @tom Scharstein). I am using CEP 9, Node 16.0.0.
Changing/setting PlayerDebugMode does not help.
Obvisiously I am missing something. Any idea what could be the issue here?
This is my package.json (hope that helps):
The text was updated successfully, but these errors were encountered: