Trim Output List
Function Description
Retains and outputs the first N items in the data list. Items after the Nth item will be discarded.

Use Cases
Used to extract the first N items of the input list.
Inputs
Unnamed: Data to have output trimmed, supports any data type.
Outputs
Unnamed: Output result after trimming.
Parameters
Port Settings
Port Count: Number of input ports and output ports, value range [1,16].
Operation Layer: Specifies which operation layer of the input data list to extract.
The operation layer is introduced as follows: For data structures like NumberList, StringList, Vector3DList, BoolList, IndexList, the operation layer is introduced as follows: [Layer 1 [Layer 0 xx,xx,xx…],[Layer 0 xx,xx,xx…] ]
For PoseList, the operation layer is introduced as follows: [Layer 1 [Layer 0[x,y,z,qx,qy,qz,w]],[Layer 0[x,y,z,qx,qy,qz,w]] ]
Output Count
Output Count: Sets the number of first N items to extract from the data list.
Example 1
To extract the first 6 items of the number list [0,1,2,3,4,5,6,7,8,9,10,11], set the operation layer for trimming to 0, and the output count to: 6. The output result is: [0,1,2,3,4,5].
Example 2
To extract [0,1,2,3,4,5] from the number list [[0,1,2,3,4,5],[6,7,8,9,10,11]], set the operation layer for trimming to 1, and the output count to: 1. The extraction result is: [[0,1,2,3,4,5]].
To extract [0] and [6], set the operation layer for trimming to 0, and the output count to: 1. The extraction result is: [[0],[6]].