@edit=n stops the user editing objects (Build/Edit floater, selection) and opening their contents. @edit:<uuid>=add adds an exception for one object. It also turns off several "x-ray" features that would reveal hidden objects: beacons, highlighting of transparent prims, and hiding of selected objects.

Syntax

@edit=<n|y>
@edit:<uuid>=<add|rem>
@edit_sec=<n|y>        (undocumented, see Caveats)

Parameters

uuid
Key of the object to exempt. The viewer compares it with the root prim's UUID of whatever is being edited, so pass the root key (llGetLinkKey(LINK_ROOT) or the object's key as seen in-world).

Specification

When a selection or edit is attempted, canEdit() refuses it if any of the following is true:

  1. @edit is active and has no applicable exception for the root UUID (normal exception rules: any object's exception counts, unless @permissive or _sec applies);
  2. the object is rezzed in-world and @editworld is active;
  3. the object is an attachment and @editattach is active;
  4. @editobj:<root uuid> is active;
  5. @interact is active and the object isn't a HUD.

Separately, a cached flag that is set whenever any @edit (or @edit_sec) restriction exists, exceptions not considered, does all of the following:

Caveats

Examples

// No editing, except this very object
llOwnerSay("@edit=n,edit:" + (string)llGetLinkKey(LINK_ROOT) + "=add");

See also

Implementation notes

Client differences

Comparison with RLVa

This command works differently from RLVa's @edit; see the comparison.