Is there any option that we can lock layer in Ai, that can be unlocked only with pass? I want to prevent other users of file to edit that layer in any way.
That is not possible.
You can't even lock a file, since the PDF password can be circumvented easily.
I tought there was some script to target leyer and add password protect on it. Because with lock anyone can ulock it... And I need other users not to intervine with content of that leyer.
To really do this, a C++ plugin has to be made. Such a plugin can make art inaccessible by regular means by putting the art into a special object of type "PluginItem". If users do not have your plugin installed, they can still see the art but nobody can edit the item without having this C++ plugin on their system. If they do have this plugin, the code of it can be code such that it will only let editing through the means that it provides. One of those means can be a UI that takes in a password before unlocking the next UI that does art manipulation (moving art in and out of this special container).
So, while it's a big effort to do C++ compared to scripting, that's a way that is technically possible to lock down any Illustrator artwork through extensibility options that we do have.
If you're just dealing with users accidentally editing the layer, one idea is to save the layer as a editable pdf and import that file back in as the "locked" layer. Your users won't accidentally edit it because it is a placed file.
However, if you want to lock it so that no intentional editor can alter it, then it will be very difficult, especially if you allow the file to be printed or exported to other formats. For example a user could print to a raw postscript or pdf file and then re-open that file, now with no protection.
I thought that also but they still can put some unwanted obejcts on that layer that is what im trying to avoid...
Do you receive the artwork file back from the editors afterwards? If so, another approach could be to establish a protocol, explained to editors, that a special layer will always be reverted to an earlier state. A script could do this after you receive the file back. Or a script could warn you that a special layer no longer matches your original in terms of its items.
Yes we do and although we tell them not to put anzthing on that layer they always do 😞 and that data that they place should be on the other layer...
is there no way to just talk to your co-workers and explain that there is one or a couple of taboo layers that must not be edited in any way?
Problem is that people even if thez are told not to thez are placing stuff on lazer tehz shouldnt... It is a head issue 😄
I remember seeing a plugin that would require a password for either expand or unlock a layer. I can't remember, it was a long time ago, but for the life of me I couldn't find it online.
It would be a great help if you find it thank yooouuu ❤️
I have never heard about the plugin Carlos is referring to and I rather doubt that it ever existed. But I may be wrong.
At least it was not world-famous, otherwise some more Illustrator users would remember it.
so if you never saw it, it doesn't exists?
No, Carlos, as already stated above, I just said that I'd rather doubt that it ever existed, but I could be wrong.
There is already a feature request, by the way:
This would be great if it could be made...