select_sub_component
- select_sub_component(selection: list(GeometryComponentSelection), mode: SelectionMode, keep_sub_components: bool) None
Update the active sub component selection with a node paths associated to selection weights.
This method modifies the sub component selection of node delegates. The nodes and the selection weights (floats) are passed with a Dict value where the key is the node delegate path and the value is a SparseBufferConstFloat. 0.0 weights means not selected, 1.0 means fully selected.
- Parameters
selection (list(GeometryComponentSelection)) – The list of the node path and the sub component weights
mode (SelectionMode) – Selection mode, replace by default
keep_sub_components (bool) – If true, keep the current sub component state, if false, clear the sub component of node not present in selection
- Return type
None