Skip to main content
Inspiring
March 16, 2023
Answered

Trick to unlock ("entsperren") a single object

  • March 16, 2023
  • 3 replies
  • 1013 views

Hi,

you can lock a single object simply via right mouse click, but you can't unlock it in the same way. The only way is to find the object in the layers panel to unlock this specific element? Because I do not want to unlock all objects on the page with ctrl-alt-l, only a single locked object – as  fast a possible... ; )

 

Thanks!

mycc

 

ID, latest version, Windows

This topic has been closed for replies.
Correct answer rob day

No. It toggles the selection—a locked item can be selected. If you only have 1 item selected the length of s would be 1.

3 replies

rob day
Community Expert
Community Expert
March 16, 2023

Hi @mycc , You could toggle a selection’s locked property on or off via a script—you can assign key commands to a script. Something like this:

 

 

var s = app.activeDocument.selection

for (var i = 0; i < s.length; i++){
    if (s[i].hasOwnProperty("locked")) {
        if (!s[i].locked) {
            s[i].locked = true
        } else {
            s[i].locked = false
        }
    } 
};   

 

myccAuthor
Inspiring
March 17, 2023

It does the same as ctrl-alt-L – it unlocks all elements, doesn't it?

rob day
Community Expert
rob dayCommunity ExpertCorrect answer
Community Expert
March 17, 2023

No. It toggles the selection—a locked item can be selected. If you only have 1 item selected the length of s would be 1.

Legend
March 16, 2023

If Show Frame Edges is selected, a small lock icon will appear on any locked object. When you hover over the icon, you will see a small opened lock icon next to the curser. Click on the icon, and the object will unlock.

myccAuthor
Inspiring
March 17, 2023

Ah, of course 😉

But at  the moment I am working mostly in preview mode.

 

Just looked in Illustrator. There you have the entry in the context menu:

 

 

 

Rishabh_Tiwari
Legend
March 16, 2023

Hi @mycc ,

 

Thank you for reaching out and sharing the feedback. Let me assure you, I'll share your feedback with the team, and you can do that too by voting for an existing request or posting a new request here.

 

This is the best way of sharing feedback directly with the Engineering team.

 

Thanks

Rishabh