ObjectAttributes ================ .. py:class:: py3dm.ObjectAttributes Bases: :py:obj:`OpenNURBSObject` Python bindings for the openNURBS ``ON_3dmObjectAttributes`` class. ``ON_3dmObjectAttributes``: Top level OpenNURBS objects have geometry and attributes. The geometry is stored in some class derived from ``ON_Geometry`` and the attributes are stored in an ``ON_3dmObjectAttributes`` class. Examples of attributes are object name, object id, display attributes, group membership, layer membership, and so on. .. py:method:: __eq__(other: object) -> bool .. py:method:: __ne__(other: object) -> bool .. py:attribute:: color :type: tuple[int, int, int, int] .. py:attribute:: layer_index :type: int .. py:attribute:: line_type_index :type: int .. py:attribute:: material_index :type: int .. py:attribute:: plot_color :type: tuple[int, int, int, int] .. py:property:: color_source :type: ObjectColorSource .. py:property:: is_visible :type: bool .. py:property:: mode :type: ObjectMode .. py:property:: plot_color_source :type: PlotColorSource .. py:method:: default() -> None Initializes all attributes to the default values. .. py:method:: get_name() -> str From ``ON_3dmObjectAttributes``: The ``m_name member`` is public to avoid breaking the SDK. Use `set_name` and `get_name` for proper validation. OpenNURBS object have optional text names. More than one object in a model can have the same name and some objects may have no name. .. py:method:: set_name(name: str, fix_invalid_name: bool = False) -> bool From ``ON_3dmObjectAttributes``: The ``m_name member`` is public to avoid breaking the SDK. Use `set_name` and `get_name` for proper validation. OpenNURBS object have optional text names. More than one object in a model can have the same name and some objects may have no name.