LayerView ========= .. py:class:: py3dm.LayerView Tiny wrapper to read-only access `Layer` (``ON_Layer``) objects. .. py:property:: color :type: tuple[int, int, int, int] .. py:property:: iges_level :type: int .. py:property:: is_expanded :type: bool .. py:property:: is_locked :type: bool .. py:property:: is_visible :type: bool .. py:property:: layer_uuid :type: uuid.UUID .. py:property:: line_type_index :type: int .. py:property:: name :type: str .. py:property:: parent_uuid :type: uuid.UUID .. py:property:: parent_uuid_is_not_null :type: bool .. py:property:: parent_uuid_is_null :type: bool .. py:property:: path_separator :type: str .. py:property:: plot_color :type: tuple[int, int, int, int] .. py:property:: plot_weight :type: float .. py:property:: render_material_index :type: int .. py:method:: index() -> int index(unset_index_value: int) -> int Value of the runtime model component index attribute. :param unset_index_value: Value to return if the index has not been set. ``ON_UNSET_INT_INDEX`` or indices of default components are often used for this parameter. :type unset_index_value: int .. rubric:: Notes If the component is in a model, then the index is unique for all components of identical type in the model and is locked. If the index has not been set, ``unset_index_value`` is returned. The ``index()`` value can change when saved in an archive (.3dm file). Use the `get_uuid()` when you need to reference model components in an archive. .. py:method:: is_valid(text_log: TextLog | None = None) -> bool