Assemble nodes into logical groupings using container nodes in the Hypershade
 
 
 

You can arrange your Work Area in the Hypershade in a more efficient manner by assembling nodes into logical node groupings using container nodes. For example, if you have a complex shading network that appears multiple times within your scene, you can group each network into a container to obtain a simpler Work Area.

A container node is a special type of node that lets you simplify the display of nodes related to a particular item in the scene or lets you assemble multiple nodes for a special purpose.

A container node is differentiated from other nodes in the Hypershade by its thick, round-cornered border outline.

Container nodes do not change the hierarchical (parent/child) relationships between nodes. You add and modify attributes and make attribute connections on container nodes just like you would other nodes in Maya. For more information see Create, edit, or delete custom attributes and Connect input and output attributes of the Basics Guide.

You select nodes within container nodes in exactly the same way you select other nodes in the Hypershade.

Creating and modifying container nodes

Container nodes can be created and removed using the Hypershade’s Edit menu or by using the icons on the Hypershade Toolbar.

You can expand or collapse the display of container nodes by double-clicking on the container node’s border or by using the icons in the Hypershade Toolbar. Expanding a container node lets you view the nodes contained within it. Collapsing a container node reduces the display of its contents so they appear as a single node in the graph display. Collapsing and expanding a container node does not affect its contents, nor does it affect the connections and attributes of the nodes inside the container node.

The background of an expanded container node is semi-transparent so you can see nodes that are behind it. Attribute connections in and out of container nodes are also visible.

To create a container node in the Hypershade

  1. Select the nodes you want to place in the container node and then do one of the following:
    • From the Hypershade menu, select Edit > Create Container.
    • Select the icon in the Hypershade toolbar.
    • Right-click one of the selected nodes and choose Create container from selected on the marking menu.

    A container node is created in the Work Area of the Hypershade, and the selected nodes appear within it.

To remove a container node from the Hypershade

  1. Select the container node you want to remove and then do one of the following:

    The selected container node is removed from the Work Area of the Hypershade. Any connections that existed for the removed container are deleted in the process.

    NoteRemoving a container node does not remove any of its contents or change the internal connections among nodes.

To collapse the display of the contents of a container node

  1. Select an expanded container node the display of which you want to minimize and then do one of the following:
    • From the Hypershade menu, select Edit > Collapse Container.
    • Select the icon in the Hypershade toolbar.
    • Double-click the border on the expanded container node.

    The selected container node is minimized. It is approximately the size of a regular node.

To expand a container node to display its contents

  1. Select a container node the contents of which you want to view and then do one of the following:
    • From the Hypershade menu, select Edit > Expand Container.
    • Select the icon in the Hypershade toolbar.
    • Double-click the border on the collapsed container node.

    The selected container node is expanded in size to display the nodes contained within it. The container node automatically resizes to contain its nodes.

To add or remove nodes from a container node

  1. Press Alt + Shift and drag the node into or out of the container node. The node is added or removed from the container.
    TipYou can also remove a node from an existing container node by right-clicking the node and selecting Remove from container on the marking menu.

To modify the size of your container node

  1. You can increase the size of your container node by moving its contents. The container node stretches as its contents is moved. If you collapse this node and expand it again, the last node position is restored.

Related topics