Search found 9 matches

by ApWizard
Tue Dec 27, 2016 2:19 pm
Forum: Help Me
Topic: simple function code from jsx script not working
Replies: 4
Views: 2565

Re: simple function code from jsx script not working

Hi Chris! Merry Christmas to you too :) It seems like...we are almost the 2 of us online here :lol: So, you are correct indeed: having the jsx-loader-function is needed. I got distracted :( :| You're almost there, as I previously said in another thread you don't call it directly. JS can interact wit...
by ApWizard
Tue Dec 27, 2016 8:45 am
Forum: Photoshop Scripting - General Discussion
Topic: addEventListener execute JSX only the first time
Replies: 0
Views: 1327

addEventListener execute JSX only the first time

Hi, as the subject suggests while testing some listener I found this strange behavior: the addEventListener does get triggered, the callback get called but the evalScript invoking the JSX runs only the first time. This is how I'm doing it: ext.JS: function doSomething(){ document.getElementById("pla...
by ApWizard
Tue Dec 27, 2016 7:43 am
Forum: Help Me
Topic: simple function code from jsx script not working
Replies: 4
Views: 2565

Re: simple function code from jsx script not working

Hello! Don't connect the JSX through the main.js, it is supposed to be "linked" via the manifest (e.g.: https://github.com/adobe-photoshop/generator-panels/blob/master/renamelayers/CSXS/manifest.xml) <Resources> <MainPath>./renamelayers.html</MainPath> <CEFCommandLine> <Parameter>--enable-nodejs</Pa...
by ApWizard
Fri Dec 23, 2016 2:30 pm
Forum: Help Me
Topic: Passing an artLayer to an ExternalObject call
Replies: 1
Views: 1017

Re: Passing an artLayer to an ExternalObject call

I think that's how an hybrid extension works, isn't it?
by ApWizard
Fri Dec 23, 2016 2:28 pm
Forum: Help Me
Topic: alert undefined in Photoshop cc 2015
Replies: 3
Views: 1921

Re: alert undefined in Photoshop cc 2015

I'm using it only for making the extension persistent.
I didn't really started to dig in there :D
by ApWizard
Thu Dec 22, 2016 4:07 pm
Forum: Help Me
Topic: alert undefined in Photoshop cc 2015
Replies: 3
Views: 1921

Re: alert undefined in Photoshop cc 2015

That's a bit curious, I did that more than once for testing purposes without getting that `undefined`. I call the evalScript direcly though:

Code: Select all

function hi(){
alert("hi there");
}

evalScript("hi()");
edit: oh, your curly brackets.
by ApWizard
Thu Dec 22, 2016 3:36 pm
Forum: Help Me
Topic: Restart/reload extension when new document is created or opened
Replies: 1
Views: 1347

Restart/reload extension when new document is created or opened

Hi! I was thinking: "how to reload/restart a persistent extension when a new document is created or one is opened?" I think I've to use app.notifier.add("Opn ", <something here>) inside the JSX file but I'm not able to come up with something useful. Some doubts: • the example above takles the openin...
by ApWizard
Fri Dec 16, 2016 7:57 am
Forum: Help Me
Topic: Passing an artLayer to an ExternalObject call
Replies: 1
Views: 1017

Passing an artLayer to an ExternalObject call

Hello guys! So, is this even possible? Scenario: use external object, called from an extension, to manipulate an image and get it back to Photoshop. Ideally a button (or some other components, like a slider etc...) calls the ExternalObject function, but how do you pass the image/artLayer to this ext...
by ApWizard
Fri Dec 16, 2016 7:49 am
Forum: Help Me
Topic: Can't get even alert to work - Eclipse/Extension Builder3
Replies: 4
Views: 1742

Re: Can't get even alert to work - Eclipse/Extension Builder3

Hello Chris, can you show us a little bit of your code? How do you call your function? This is how I do it: /*** in the index.html ***\ ... <head> <script src="ext.js"></script> </head> ... <body> <button onClick="myFunction_onExtJs();"> ... /*** in the ext.js ***\ function myFunction_onExtJs(){ eva...

Go to advanced search