Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Layer displacement alert

Participant ,
Jun 18, 2014 Jun 18, 2014

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?

TOPICS
Actions and scripting
498
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jun 18, 2014 Jun 18, 2014

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...

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 19, 2014 Jun 19, 2014

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 19, 2014 Jun 19, 2014

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 19, 2014 Jun 19, 2014

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 20, 2014 Jun 20, 2014

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.

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 20, 2014 Jun 20, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines