Photoshop: Scripting - check if layer link is temporary disabled

  • 1
  • Question
  • Updated 10 months 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

  • 763 Posts
  • 150 Reply Likes
  • helpless

Posted 10 months ago

  • 1
Photo of christoph pfaffenbichler

christoph pfaffenbichler, Champion

  • 1199 Posts
  • 159 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

  • 763 Posts
  • 150 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.