Photoshop: Scripting - check if layer link is temporary disabled

  • 1
  • Question
  • Updated 1 year ago
  • (Edited)
Hard question for experts.

I can get list of linked layers, but how can I know if link is temporary disabled? (red cross)

Photo of Jaroslav Bereza

Jaroslav Bereza

  • 785 Posts
  • 168 Reply Likes
  • helpless

Posted 1 year ago

  • 1
Photo of christoph pfaffenbichler

christoph pfaffenbichler, Champion

  • 1228 Posts
  • 173 Reply Likes
Layer > Select Linked Layers seems to disregard the Layers with disabled linking, so it should be possible to determine which ones are not disabled. But it might take more than one run if the Layer one starts with has the linking disabled itself, I guess. 
(Edited)
Photo of Jaroslav Bereza

Jaroslav Bereza

  • 785 Posts
  • 168 Reply Likes
Yes. I already tried some code here: https://forums.adobe.com/message/9719114#9719114

If link is disabled I will enable it, find linked layers, exclude current layer and disable link again.