Copy link to clipboard
Copied
I am running PSCC 2014 on a mac. I work with a wacom table and keyboard shortcuts. I work fast without looking look at the keyboard. Often end up moving layers, duplicating layers inadvertently by pressing the wrong keys.
I have identified the keyboard shortcuts responsible for the layer shift/duplication and was able to record an action.
The idea is to setup a Javascript alert when the layer moves or duplicates using the Scripts Events Manager Photoshop Event dialog.
I have not been able to successfully add the Photoshop Event using the Event ID code 'copy' and ‘move’ listed in the Adobe Photoshop CC 2014 Javascript Scripting Reference guide.
The Adobe scripting listener plugin does not record the layer movement and layer duplication events.
When I replicate the problem the History pallet registers both, the layer copy and layer move events as a ‘move’ history state.
Other than Javascript Scripting Reference guide Is there a way to find out the exact event Id for a layer move and layer duplicate events?
Copy link to clipboard
Copied
didn't you post this question a few weeks ago? what are the keyboard shortcuts that are activating the layer move/duplication? If you tell me this much then I might have a solution.
Copy link to clipboard
Copied
Yes, I did post this question recently. I am still trying to figure out a way to detect when the layer moves/duplicates to prevent adding content to the layer which is out of alignment.
Command + mouse drag on the active layer shifts the layer content.
Command + Option + mouse drag on active layer duplicates the active layer.
Copy link to clipboard
Copied
I've tried to create an event for the 'copy' command like this:
theFile = new File("f:/testCopyEventAlert.jsx");
app.notifiers.add("copy", theFile);
and the testCopyEventAlert.jsx looked like this:
alert("COPY");
but the event manager didn't triggered my alert all the time I was copying a layer. So I've tried another way, to create a panel that will listen for the copy event, this time the event was catch but with a bit of delay. You can check the panel here:
To install it just extract the archive in (your Photoshop installation folder)/Plug-ins/Panels. Than open Photoshop and go to Window>Extensions>BCM_copyAlert.
and If you like the idea I can try to catch the move event also...or I can share the FlashDevelopper sources so you can make changes on it.
Copy link to clipboard
Copied
Thanks for your help. I was unable to connect to the web page and download the panel. The page does not laod up.
Copy link to clipboard
Copied
here is the link on mediafire:
Copy link to clipboard
Copied
Thanks for working this problem out. I am downloading Photoshop CC to install the flash based panel. Can you please share the Flash Developer source so that I can make the changes myself.
Copy link to clipboard
Copied
I've uploaded the source files for Flash Develop, I've made the listener for the move event also. but I don't know if it works with CC, maybe the flash panels are still supported, but you can read the code and make a html5 panel that will do the same thing....
Copy link to clipboard
Copied
sorry, I wasn't aware you're using a mac. I know that in Windows, you can run additional software that will send you an alert every time you accidentally press those keys. It can even block the layer shift/duplication if you choose. I've just tried a sample here on my system and it works perfectly - every time cmd (in my case ctrl) is pressed, a tooltip at the mouse cursor will pop up, saying "CTRL is pressed". Additionally, whenever I press ctrl+option+drag, the tooltip instead says "Layer has been moved". I'm positive this can also be done on the mac.
you should look into a key remapping program for the mac that resembles AutoHotKey for Windows (which is what I'm using). It will allow you to send alerts every time you press those key/mousebutton combinations by accident. This is a solution I bet you can take care of outside of Photoshop, meaning that you won't need to rely on javascripting or anything.
Here's a webpage that gives a full list of mac software which are similar to AutoHotKey:
AutoHotkey Alternatives for Mac OS X - AlternativeTo.net
Keyboard Maestro seems to be the best bet but I wouldn't know for sure. Your solution will be in one of those programs for sure.
By the way - I tried BCM's panel and it works perfectly!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now