Extracting Items from a Collection of Objects

You can get specific items directly from a selection in a collection of objects.

Depending on the selection, the following operations are created: Get Item, Get Items, or Get Item Path. For more information, see List.

Important: Some visuals in this page are based on the user interface in an earlier release, but the concepts described are still valid.

This task shows you how to:


Before you begin: Connect the collection to a Watch node.

Extract One Item Belonging to a One-level Collection

  1. From the list in the Watch node, select an item.
  2. Click Extract .



    A Get Item node is created, returning the selected item as result.

Result:

Tip: You can also extract an item when working in the 3D area.

To do so, select an element, and then click Get Item on the shortcut toolbar.

Extract Several Items Belonging to a One-level Collection

  1. From the list in the Watch node, select multiple elements.
  2. Click Extract .



    A Get Items node is created, returning the selected items as result. Moreover, a List Editor node is created to provide the list of indexes of the extracted items.

Result:

Tip: You can also extract items when working in the 3D area.

To do so, select the elements, and then click Get Items on the shortcut toolbar.

Extract One or Several Items Belonging to a Multilevel Collection

  1. From the list in the Watch node, select one or several elements.
  2. Click Extract .



    A Get Item Path node is created, returning the selected items as result. Moreover, a List Editor node is created to provide the list of paths of the extracted items.

Result:

Tip: You can also extract items when working in the 3D area.

To do so, select the elements, and then click Get Item Path on the shortcut toolbar.

Extract Several Items Belonging to Different Collections

  1. From the lists in the Watch nodes, select several elements.
  2. Click Extract .



    For each extracted item:
    • A Get Item Path node is created, returning the selected item as result.
    • A List Editor node is created, providing the path of the extracted item.
    Moreover, an Append List node is created to concatenate all the extracted items.

Result:

Tip: You can also extract items when working in the 3D area.

To do so, select the elements, and then click Get Items in List on the shortcut toolbar.

Important: When you work with a multilevel collection, you can also select a line or a column to specify the elements to extract:

In this case, a Get Item node is created, and the dimension of its list input is 2.