kittycad.models.modeling_cmd.select_with_point
- class kittycad.models.modeling_cmd.select_with_point(selected_at_window=<kittycad.types.Unset object>, selection_type=<kittycad.types.Unset object>, type='select_with_point')[source][source]
Bases:
object
Modifies the selection by simulating a “mouse click” at the given x,y window coordinate Returns ID of whatever was selected.
Method generated by attrs for class select_with_point.
- __init__(selected_at_window=<kittycad.types.Unset object>, selection_type=<kittycad.types.Unset object>, type='select_with_point')[source]
Method generated by attrs for class select_with_point.
Methods
__init__
([selected_at_window, ...])Method generated by attrs for class select_with_point.
from_dict
(src_dict)- rtype:
TypeVar
(NK
, bound= select_with_point)
to_dict
()Attributes
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'selected_at_window': typing.Union[kittycad.types.Unset, kittycad.models.point2d.Point2d], 'selection_type': typing.Union[kittycad.types.Unset, kittycad.models.scene_selection_type.SceneSelectionType], 'type': <class 'str'>}[source]
- __attrs_attrs__ = (Attribute(name='selected_at_window', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.point2d.Point2d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='selected_at_window'), Attribute(name='selection_type', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.scene_selection_type.SceneSelectionType], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='selection_type'), Attribute(name='type', default='select_with_point', validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=<class 'str'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='type'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
- __dict__ = mappingproxy({'__module__': 'kittycad.models.modeling_cmd', '__annotations__': {'selected_at_window': typing.Union[kittycad.types.Unset, kittycad.models.point2d.Point2d], 'selection_type': typing.Union[kittycad.types.Unset, kittycad.models.scene_selection_type.SceneSelectionType], 'type': <class 'str'>, 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'Modifies the selection by simulating a "mouse click" at the given x,y window coordinate Returns ID of whatever was selected.', 'to_dict': <function select_with_point.to_dict>, 'from_dict': <classmethod(<function select_with_point.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function select_with_point.__getitem__>, '__setitem__': <function select_with_point.__setitem__>, '__delitem__': <function select_with_point.__delitem__>, '__contains__': <function select_with_point.__contains__>, '__dict__': <attribute '__dict__' of 'select_with_point' objects>, '__weakref__': <attribute '__weakref__' of 'select_with_point' objects>, '__attrs_attrs__': (Attribute(name='selected_at_window', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.point2d.Point2d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='selected_at_window'), Attribute(name='selection_type', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.scene_selection_type.SceneSelectionType], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='selection_type'), Attribute(name='type', default='select_with_point', validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=<class 'str'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='type'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function select_with_point.__repr__>, '__eq__': <function select_with_point.__eq__>, '__ne__': <function select_with_point.__ne__>, '__lt__': <function select_with_point.__lt__>, '__le__': <function select_with_point.__le__>, '__gt__': <function select_with_point.__gt__>, '__ge__': <function select_with_point.__ge__>, '__hash__': None, '__init__': <function select_with_point.__init__>, '__match_args__': ('selected_at_window', 'selection_type', 'type')})[source]
- __init__(selected_at_window=<kittycad.types.Unset object>, selection_type=<kittycad.types.Unset object>, type='select_with_point')[source]
Method generated by attrs for class select_with_point.
-
selection_type:
Union
[Unset
,SceneSelectionType
][source]