ObjectAttributes¶
- class py3dm.ObjectAttributes¶
Bases:
OpenNURBSObjectPython bindings for the openNURBS
ON_3dmObjectAttributesclass.ON_3dmObjectAttributes: Top level OpenNURBS objects have geometry and attributes. The geometry is stored in some class derived fromON_Geometryand the attributes are stored in anON_3dmObjectAttributesclass. Examples of attributes are object name, object id, display attributes, group membership, layer membership, and so on.- property color_source: ObjectColorSource¶
- property mode: ObjectMode¶
- property plot_color_source: PlotColorSource¶
- get_name() str¶
From
ON_3dmObjectAttributes:The
m_name memberis 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.
- set_name(name: str, fix_invalid_name: bool = False) bool¶
From
ON_3dmObjectAttributes:The
m_name memberis 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.