Assign a template to a container
 
 
 

After you have saved a container template, you can assign it to other containers.

When you assign a template to another container, all published names from the template that do not already exist on that container are automatically published. This means they are automatically added to the container. You can then bind the relevant attributes from nodes within the container to the published names from the template.

You can assign a template using the Asset Editor or Attribute Editor.

To assign a template using the Asset Editor

  1. In the left panel of the Asset Editor, select the container to which you want to assign a template, then click the Pin icon .

    The pinned container’s published attributes and nodes display in the right panel, and its name displays in the Asset Editor title bar.

  2. From the Asset Editor menu bar, select Template > Assign > Assign New Template.

    A file browser opens to the assets sub-directory of your current project.

  3. Select a previously saved template and click Select.

    The template is assigned to the selected container, and its published names are listed under the Unbound heading in the right panel of the Asset Editor. The name of the assigned template displays in the Template field above the right panel.

    When a container has no template assigned, the Select icons next to each published attribute or node in the right panel display in red to indicate that no template is assigned. When you assign a template to a container, the Select icons change to green or yellow to indicate whether the published name comes from the assigned template. Green indicates that the published attribute’s name comes from the assigned template, and yellow indicates that the published name does not.

    Now that you have assigned the template with its list of published names, you can go on to bind the attributes of the container’s nodes to those published names.

To bind attributes to published names from a template

  1. In the Asset Editor, select a container that has a template assigned and click the Pin icon .

    The container’s published attributes (bound and unbound) and its published nodes display in the right panel. The unbound published names from the template are available under the Unbound heading.

    NoteUnbound published names that do not come from the template display with a yellow Select icon , and those that do come from the template will have no Select icon. The published names from the template do not display Select icons because they cannot be renamed or deleted.
  2. Expand the container contents in the left panel of the Asset Editor.

    Note that any attributes already bound to published names display in italics. If you want any currently bound attribute to use a published name from the template instead, you must unbind it first.

  3. Expand the Unbound heading in the right panel to view the list of published names coming from the template.
  4. Start to bind attributes to the published names by doing the following:
  5. The attribute you selected in the left panel is now published and bound to the name you selected in the right panel. When you refresh the Asset Editor, the attribute moves to the bound attribute listing for the given node.

    (See also Bind/unbind an attribute.)

  6. Continue selecting attributes in the left panel and binding them to names from the template until you have all of the required attributes for the asset published and bound.

To un-assign a container template

  1. In the left panel of the Asset Editor, select the container using a template you want to un-assign, then click the Pin icon .
  2. From the Asset Editor menu bar, select Template > Unassign or Template > Assign > None.

    The template is unassigned, and the Asset Editor refreshes. The Select icons next to each published attribute turn red to indicate there is no template assigned.

Related topics