Skip to main content
CyberTubeHindi
Participating Frequently
February 18, 2022

P: Action: Copy command has extra parameter "Hint: Pixels" - incompatible wi 2020 or earlier actions

  • February 18, 2022
  • 21 replies
  • 1245 views

In photoshop 2022 Action Record and Select area and copy comand reocrd thats not work in Play Action photoshop older version of due to copy cammand photoshop 2022. Thats bugs and Plz Fix it For Record Action Coppy Command For All Photoshop older version.. Also atteched Problem photo

This topic has been closed for replies.

21 replies

PECourtejoie
Community Expert
Community Expert
October 27, 2022

Could this issue be helped if there was a conditional that could check the current PS version?

Stephen Marsh
Community Expert
Community Expert
September 5, 2022
quote

but this is incorrect advice to tell people that it is "forward compatible" to use the old action copy command in the new version.


By @Max Chroma 

 

EDIT: I believe that the caveat is:

 

@CJButler wrote:

Keep in mind that any Action that you modify to use an unhinted Copy command may malfunction on the latest Photoshop per the issues identified above.

Max Chroma
Known Participant
September 5, 2022

I've found this same problem between a 2021 version and 2022 version, but this is incorrect advice to tell people that it is "forward compatible" to use the old action copy command in the new version.  After running some tests, it appears to work but it causes bugs when the action runs that are unpredictable and don't repeat when the actions are run in a slower fashion like just testing the steps.  
I was scratching my head, but it is clearly a bug caused by the lack of the "hint" in the copy command, but only appears for me when the action is run all the way through.  It is a very strange bug because I can't seem to figure out why it is only happening when I run the action, but it was caused by trying to use the photoshop 2021 copy command in the 2022 actions.  
I think the only fix is you need to have one action set for 2021 and keep the current copy + hint commands in 2022 actions, so they both run correctly respectively without bugs.   It appears that the copy command from 2021 works, but in practice with actions that have a lot of steps in them, the bug appears.  For me it was switching a certain layer to appear like another layer even though this doesn't happen anywhere in the actions if they are run in one at a time or in small chunks.  But when I run the whole action it triggers the bug. 

Stephen Marsh
Community Expert
Community Expert
February 23, 2022

@CJButler  – Thank you for the reply.

Kukurykus
Legend
February 21, 2022
CJButler
Community Manager
Community Manager
February 21, 2022

I thought I should respond to this report directly since I was the Developer that added the "Hint" field to the Copy parameters.

 

The "Hint" parameter fixes a bug where it was ambiguous as to what should be copied by a Script. Unfortunately, the Copy command is severely overloaded, and what gets copied depends on the current Marquee (Pixel) selection, the current Layer selection, and even the current Tool.

 

This complexity with the Copy command has crept in over time. In 2018, the ability to Copy Layers was added. Some time around late 2019, the User Interface was changed so that when Shape layers were selected, various controls were automatically enabled if a vector-oriented editing Tool was also selected. Under those condition, Copy would attempt to copy the selection as Vector Paths. Undesireable results would frequently follow.

 

Older scripts without the hint can malfunction in the current Photoshop depending on the current selection and tool state when the Script is executed. With the hint, the scipt understands more clearly what is supposed to be copied in ambiguous situations.

 

Unfortunately, we do not have the resources to revise older versions of Photoshop to ignore the hint.

 

To get your Actions to work in an older Photoshop, you should:

  • Record the Copy command using an older version of Photoshop.
  • Export that unhinted Copy command to an .atn file.
  • Load the unhinted Copy command into the latest Photoshop. You will use it as a template.
  • Replicate that unhinted Copy command as needed into your Actions.

 

Keep in mind that any Action that you modify to use an unhinted Copy command may malfunction on the latest Photoshop per the issues identified above.

Stephen Marsh
Community Expert
Community Expert
February 21, 2022

For what it is worth, I have found hints for pixels, layers, and paths.

 

 

Legend
February 20, 2022

I suspect this won't be touched/fixed as the action step records and plays back in the Supported Versions (2022 and 2021). The best course of action (no pun intended - well, maybe some intention) is to keep a legacy "Copy" step you can option drag into actions you create to be backward compatible.

Legend
February 20, 2022

@Stephen Marsh Thanks. Need to follow up with engineering on what this param does and if there's any way to to escape it.

Stephen Marsh
Community Expert
Community Expert
February 20, 2022

We do need Adobe to confirm if feature or bug. 

You are correct, you can't control what version your end users have. What you can do is publish a version known to work with certain versions. You can also replace the offending 'hint' steps with steps recorded in an older version or your end users can replace the step in their older version.

 

More info from Adobe would be helpful.