User Tools

Site Tools


visual3d:documentation:pipeline:expressions:brackets

This is an old revision of the document!


brackets

contents

parentheses

parenthesis ( and ) are used to contain the parameters in a function for example vector(0,0,1)

square_brackets

square brackets

square brackets [ and ] specify frame numbers and components

square brackets [ and ] are used at the end of a function call or parenthesis ( ) to specify the frames numbers and components example, add two signals and retrieve the component 1 from frame 5 evaluate_expression /expression= (target::original::rft1 + target::original::rft2)[5,1] /result_name=rft_add_x /result_type=derived /result_folder=processed ; for example, add two signals and retrieve the component 1 for all frames evaluate_expression /expression= (target::original::rft1 + target::original::rft2)[-1,1] /result_name=rft_add_x /result_type=derived /result_folder=processed ; note a frame of -1 means all frames extracting one “component” of data from signal

the following command will result in the derived signal test containing the x component values of the target rft1. evaluate_expression /expression=target::original::rft1::x /result_name=test /result_type=derived ! /result_folder=processed ;

using square brackets and boolean operators

in this example, project a collection of markers onto the floor whenever the z-component of a marker is less than a threshold (e.g. 0.08 in this example) otherwise set the resulting frame to no_data evaluate_expression /expression=1)*vector(1,1,0)*current_signal /signal_types=target /signal_folder=original /signal_names=lft1+lft2+lft3+rft1+rft2+rft3 /result_types=target /result_folders=ground ! /result_name= /apply_as_suffix_to_signal_name=true ;

1)
(current_signal[-1,3])<0.08)/((current_signal[-1,3])<0.08
visual3d/documentation/pipeline/expressions/brackets.1718801393.txt.gz · Last modified: 2024/06/19 12:49 by sgranger