Copy link to clipboard
Copied
Hello,
could you gently confirm that there's no way to retrieve the x,y data (that the Info Palette is constantly showing while mousing around the image), not to mention the "live" eyedropper as well?
Thanks,
Davide
To the best of my knowledge that is still the case.
What are you intending to use that information for?
Copy link to clipboard
Copied
To the best of my knowledge that is still the case.
What are you intending to use that information for?
Copy link to clipboard
Copied
Still wondering how to build a better info palette in photoshop (CS SDK + ESTK). It would be nice to avoid the color samplers workaround and access the original info palette numbers.
Thanks anyway!
Davide
Copy link to clipboard
Copied
I concur, it would be great to be able to access the »cursor-feed« (or whatever it is poperly called).
But maybe someone else has more insight into the issue than me.
Copy link to clipboard
Copied
Was this added since 2011? 😃
I really need to get live Info values in my script
Copy link to clipboard
Copied
r-bin​ Looks like Adobe has issues and your message was deleted.
Anyways, your proposed solution will only work in the extension panel itself.
I need to get pixel info values when user hovers mouse over the image he edits. In a similar fashion as it works when user is working with Curves and then can select a Hand/Move tool and hove over image, moving the curve up/down
Copy link to clipboard
Copied
I did not quite understand what was needed. Therefore, deleted.
Here is a temporary solution for CC2018. In CS6, everything is much simpler.
If this suits you, then you can further refine.
var d = null;
function handle(e) { if (!d) return; t1.text = e.screenX; t2.text = e.screenY;}
var p = new Window("palette", undefined, undefined, { borderless: true } );
p.preferredSize = [$.screens[0].right, $.screens[0].bottom];
p.margins = 0;
var b = p.add("button");
b.preferredSize = [$.screens[0].right, $.screens[0].bottom];
p.addEventListener ("mousemove", handle, false);
b.onClick = function() { d.hide(); d.show(); }
p.opacity = 0.01;
p.show();
d = new Window("palette", undefined, undefined, { resizeable: true, minimizeButton:true, maximizeButton: true, closeButton: false,} );
d.preferredSize = [200,200];
var t1 = d.add("statictext");
t1.preferredSize.width = 150;
var t2 = d.add("statictext");
t2.preferredSize.width = 150;
d.show();
while (d.visible)
{
app.bringToFront();
}
p.close();
p = null;
d.close();
d = null;
Copy link to clipboard
Copied
Sorry but I don’t get it, could you please elaborate?
How do you retrieve the mouse-position data with that Script?
Copy link to clipboard
Copied
This is a bad way. Forget it.
p.s. In order for the script not to hang, you need to put in the Actions panel the playback mode step-by-step.
Copy link to clipboard
Copied
Thanks for getting back on this.
Copy link to clipboard
Copied
@jazz-y posted a neat solution in this thread:
https://community.adobe.com/t5/photoshop-ecosystem-discussions/opening-window-on-mouse/td-p/13143208
Copy link to clipboard
Copied
My solution is identical to what @r-bin suggested: we create a dialog with a button in full screen size, an event listener is created for the mouse position. The difference in details is due solely to the formulation of the task.
Copy link to clipboard
Copied
I think I couldn’t get it to work back then, but @r-bin mentioned version-issues so it may have been owed to that.