trigger.library.selection

Functions, checks and queries for selection dependant tasks

Functions

add_to_set(members, set_name[, force])

Adds the given members to a selection set. Returns the set name

get_selection_type()

Return the type of the selection.

selection_validate()

validates if only faces of a single object has been made

validate([minimum, maximum, groups_only, meshes_only, ...])

Module Contents

add_to_set(members, set_name, force=True)

Adds the given members to a selection set. Returns the set name If the given set exists, it uses that one or else it creates a new one.

Args:

members: (List) members to be added set_name: (String) name of the list force: (Bool) If true and provided set_name is not a unique name in the scene, a set with a

unique name will be created. Or it will raise an exception

Returns: (String) name of the used set.

get_selection_type()

Return the type of the selection.

selection_validate()

validates if only faces of a single object has been made

validate(minimum=None, maximum=None, groups_only=False, meshes_only=False, nurbs_curves_only=False, transforms=True, full_path=False)