Copy link to clipboard
Copied
When using photoshop with a Wacom table I unconsciously move layers which causes a registration problem down the line.
I work up and down the layer pallet and can not lock any layers.
Is it possible through scripting to send a UI alert when a layer has been moved inadvertently?
Copy link to clipboard
Copied
How would a script know if a move was deliberate or inadvertently moved. The inadvertent move would be done in Photoshop UI so you may be able to set to set up an Script Event Manager move event to trigger a script's execution, However the script would need some process to decide if the move was inadvertent...
Copy link to clipboard
Copied
how is the layer being moved? Is it being moved by accidentally switching to the 'move' tool, or is it being moved by accidentally using the 'nudge' command.. etc. If we can find out why it's moving, then there may be some workarounds...
Copy link to clipboard
Copied
I am not 100% sure how the layer gets displaced. Most likely while panning across the frame using the space bar and walcom tablet or using key board shortcuts to change the brush diameter.
I am wondering if a script can record the name and position for all layers in the open document. Then when a layer moves 1 px an alert box popups.
Copy link to clipboard
Copied
I think you're going to first need to determine exactly what's causing it. I'm not knowledgable enough to answer your question regarding an alert script, but if you were to determine that the layer was being moved by accidentally selecting the move tool and then dragging the layer, then I know of a few methods that could alert you every time the move tool was being selected. This alert could be achieved by showing a tooltip at your cursor, such as "MOVE TOOL SELECTED", or it could play a sound, or show a pop-up message box, or a number of other alert options. This way at least, you would know that the move tool is now active and the layer is susceptible to movement. As far as I know, there are no ways to move the layer using the spacebar or a combination of the spacebar and another key. If the layer is moving by just a pixel or two, then you're likely activating the 'nudge' command somehow. If it's moving by a large distance, then it's probably the move tool.
Copy link to clipboard
Copied
Script events are triggered after the event not before. There is no information past as far as I know. All the event processor would know for sure is a Photoshop has just been done the triggering event. For example if the event ID was close the document would not even be in Photoshop for it was closed, The document was close and a file may not have been saved and all history states that may have existed no longer exists. What one can do in close event escapes my mind. After a move event the document would still be open in Photoshop. I do not know if it would be easy or hard to to find the difference in the document state before the move to compare it to the current document state. I would think many Photoshop operations would be considered a move event.
Copy link to clipboard
Copied
it will help Photoshop users to know that not everything needs to rely on .jsx scripting - there are other 3rd party apps that can also monitor Photoshop as it works, and when something happens that you would like to be alerted about, it can absolutely be done. But for that to be done, it's likely that the original poster will need to pinpoint the cause of the problem. After that, it will be much easier to solve.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now