Trim Input List

You are viewing an old version of the documentation. You can switch to the documentation of the latest version by clicking the top-right corner of the page.

Function

This Step keeps the first N items in a data list and output. Items after the Nth item will be discarded.

trim input list trim input list

Usage Scenario

This Step extracts the first N items in a list, and the N value can be set in the parameters by project requirements.

Input and Output

For this Step, the input and output are of the same data type. For example, when the input is pose data, the input and output of this Step are shown as follows:

trim input list input and output

Parameter Description

Ports Settings

Port Number (1–15)

Description: Set the number of input and output ports in this Step.

Default value: 1

Value range: 1–15

Operation Layer

Description: Specify the layer of elements on which operations should be performed in the list. When the value of this parameter is 0, operations will be performed on every element in the list; otherwise, operations will be performed only on elements of the specified layer.

Default value: 0

Output Size

Description: Set the number of outputs in this Step.

Default value: 1

Tuning recommendation: Please set the value according to the actual situation.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.