Show in Contents
Add to Favorites
Home: Autodesk Maya Online Help
Set the current container
Navigating containers
Hide unpublished nodes and attributes
Lock a container
You
can lock unpublished attributes for nodes inside containers so that
their contents cannot be changed. This is a useful precautionary
measure when you want to protect sensitive components from accidental
changes.
When a container’s unpublished attributes are
locked, you cannot:
- Alter
the values of unpublished attributes.
- Publish/Unpublish
attributes.
- Bind/Unbind
attributes.
- Unlock
or remove encapsulated nodes.
- Add
nodes to the container.
- Delete
incoming connections to unpublished attributes.
- Delete
encapsulated nodes.
- Rename
the container or its nodes.
- Modify
the parenting of unpublished nodes.
- Change
views, view modes, or other container attributes.
You can:
- Change
values and connections of published attributes.
- Modify
the parenting of published parent or child anchors for nodes inside
the container.
- Delete
outgoing connections from internal nodes to external nodes.
- Delete
external source nodes for incoming connections (this deletes the incoming
connection as well).
Any published attributes and nodes are unaffected
when a container is locked. Thus, locking unpublished attributes
is an easy way to promote the use of a container’s interface over
modifying its internal node attributes.
NoteWhen you lock unpublished attributes on
a container, the unpublished attributes of any sub-containers are
automatically locked as well.
To
lock all unpublished attributes
- Select
a container or any object in the container.
- Select
Assets > Lock Unpublished Attributes.
All unpublished attributes for nodes in the
container are locked.
To
unlock all unpublished attributes
- Select
a container.
- Select
Assets > Unlock Unpublished Attributes.
All unpublished attributes for nodes in the
container are unlocked.
Locking and referencing
You can lock all unpublished attributes when
saving a container for use when a container is referenced by a parent
file. This allows you to lock all unpublished attributes from the
parent file’s perspective, without locking them in the working (child)
file.
NoteIn general you cannot lock/unlock a referenced
container’s attributes from a parent file.
To
lock unpublished attributes for referencing
- Create
your geometry and place it in a container.
- Publish
the appropriate attributes to the container.
Make sure to publish any attributes that are
needed by the parent scene.
- Select
File > Save Scene As > .
The Save As Options window
appears.
- In
the Referencing Options section,
set Container unpublished to Lock.
- Optionally,
you can set Lock File to Lock as
well.
This prevents users from saving any reference
edits to this file from the parent file.
- Select Save
As and enter a name for the file.
When the file is saved, all the unpublished
attributes for all containers in the scene are locked. These attributes
cannot be unlocked from the parent file.