    

 ## On this page

  

 

 # SphericalSelectionRule

 Last update: 16.07.2026 

<a id="compolyx.SphericalSelectionRule"></a>

### *class* compolyx.SphericalSelectionRule(graph, obj, parent=None)

Spherical selection rule.

### Attributes

NameDescription[`SphericalSelectionRule.active`](compolyx.SphericalSelectionRule.active.md#compolyx.SphericalSelectionRule.active)Active status of the object.[`SphericalSelectionRule.changed`](compolyx.SphericalSelectionRule.changed.md#compolyx.SphericalSelectionRule.changed)Triggers an observable to dispatch a change notification.[`SphericalSelectionRule.direction_in_global_coordinates`](compolyx.SphericalSelectionRule.direction_in_global_coordinates.md#compolyx.SphericalSelectionRule.direction_in_global_coordinates)Direction of the rule in global coordinates.[`SphericalSelectionRule.enabled`](compolyx.SphericalSelectionRule.enabled.md#compolyx.SphericalSelectionRule.enabled)Indicates whether the object is enabled.[`SphericalSelectionRule.extent`](compolyx.SphericalSelectionRule.extent.md#compolyx.SphericalSelectionRule.extent)Extent of the rule.[`SphericalSelectionRule.id`](compolyx.SphericalSelectionRule.id.md#compolyx.SphericalSelectionRule.id)ID of the object.[`SphericalSelectionRule.include_rule_type`](compolyx.SphericalSelectionRule.include_rule_type.md#compolyx.SphericalSelectionRule.include_rule_type)include type.[`SphericalSelectionRule.is_dict_item`](compolyx.SphericalSelectionRule.is_dict_item.md#compolyx.SphericalSelectionRule.is_dict_item)Indicates whether the object is an item in a dictionary.[`SphericalSelectionRule.is_list_item`](compolyx.SphericalSelectionRule.is_list_item.md#compolyx.SphericalSelectionRule.is_list_item)Indicates whether the object is an item of a list.[`SphericalSelectionRule.link_path`](compolyx.SphericalSelectionRule.link_path.md#compolyx.SphericalSelectionRule.link_path)Root path of the current node in the tree for links to this object.[`SphericalSelectionRule.name`](compolyx.SphericalSelectionRule.name.md#compolyx.SphericalSelectionRule.name)Name of the object.[`SphericalSelectionRule.origin`](compolyx.SphericalSelectionRule.origin.md#compolyx.SphericalSelectionRule.origin)Origin of the Sphere.[`SphericalSelectionRule.origin_in_global_coordinates`](compolyx.SphericalSelectionRule.origin_in_global_coordinates.md#compolyx.SphericalSelectionRule.origin_in_global_coordinates)Origin of the rule in global coordinates.[`SphericalSelectionRule.parent`](compolyx.SphericalSelectionRule.parent.md#compolyx.SphericalSelectionRule.parent)Parent object in the tree.[`SphericalSelectionRule.radius`](compolyx.SphericalSelectionRule.radius.md#compolyx.SphericalSelectionRule.radius)Sphere Radius.[`SphericalSelectionRule.relative_rule_type`](compolyx.SphericalSelectionRule.relative_rule_type.md#compolyx.SphericalSelectionRule.relative_rule_type)relative type.[`SphericalSelectionRule.root_path`](compolyx.SphericalSelectionRule.root_path.md#compolyx.SphericalSelectionRule.root_path)Root path of the current node in the tree.[`SphericalSelectionRule.rosette`](compolyx.SphericalSelectionRule.rosette.md#compolyx.SphericalSelectionRule.rosette)Rosette of the used for origin and direction.[`SphericalSelectionRule.status`](compolyx.SphericalSelectionRule.status.md#compolyx.SphericalSelectionRule.status)Status of the object.[`SphericalSelectionRule.status_changed`](compolyx.SphericalSelectionRule.status_changed.md#compolyx.SphericalSelectionRule.status_changed)Boolean flag which is set to true in C++ when up-to-date status of object changes.[`SphericalSelectionRule.uid`](compolyx.SphericalSelectionRule.uid.md#compolyx.SphericalSelectionRule.uid)UID of the object.[`SphericalSelectionRule.use_global_coordinate_system`](compolyx.SphericalSelectionRule.use_global_coordinate_system.md#compolyx.SphericalSelectionRule.use_global_coordinate_system)Use global coordinate system for origin and direction.[`SphericalSelectionRule.vertex`](compolyx.SphericalSelectionRule.vertex.md#compolyx.SphericalSelectionRule.vertex)Raises an error if the object has been removed from the graph.### Methods

NameDescription[`SphericalSelectionRule.find_parent`](compolyx.SphericalSelectionRule.find_parent.md#compolyx.SphericalSelectionRule.find_parent)(type)Steps up the tree and returns the first parent with given type.[`SphericalSelectionRule.get_short_description`](compolyx.SphericalSelectionRule.get_short_description.md#compolyx.SphericalSelectionRule.get_short_description)()[`SphericalSelectionRule.obj_exists`](compolyx.SphericalSelectionRule.obj_exists.md#compolyx.SphericalSelectionRule.obj_exists)()Checks if \_\_obj still references the c++ object (has not been reset to None by self.\_delete) and exists in the graph.[`SphericalSelectionRule.serialize`](compolyx.SphericalSelectionRule.serialize.md#compolyx.SphericalSelectionRule.serialize)()Serialize to Python string.[`SphericalSelectionRule.serialize_name_and_id`](compolyx.SphericalSelectionRule.serialize_name_and_id.md#compolyx.SphericalSelectionRule.serialize_name_and_id)()Serializes the name and ID.[`SphericalSelectionRule.serialize_rule_types`](compolyx.SphericalSelectionRule.serialize_rule_types.md#compolyx.SphericalSelectionRule.serialize_rule_types)()[`SphericalSelectionRule.update`](compolyx.SphericalSelectionRule.update.md#compolyx.SphericalSelectionRule.update)()[`SphericalSelectionRule.visit`](compolyx.SphericalSelectionRule.visit.md#compolyx.SphericalSelectionRule.visit)(visitor)Walk through the tree and let the visitor perform action on every descendant node.