maya.core.dagnode ================= .. py:module:: maya.core.dagnode .. autoapi-nested-parse:: DAG (Directed Acyclic Graph) node wrapper for Maya. Classes ------- .. autoapisummary:: maya.core.dagnode.DagNode Module Contents --------------- .. py:class:: DagNode(*args, **kwargs) Bases: :py:obj:`maya.core.node.Node` DAG-capable node wrapper with parent/children queries. .. py:method:: create(cmd, name=None, parent=None) :classmethod: Create a node using a maya.cmds command name. Example: 'joint', 'polySphere'. .. py:method:: get_color(as_color=False) Get the display color of the controller shapes. Args: as_color (bool, optional): If True, and if its RGB colors, return a tik.core.color.Color obj. .. py:method:: get_parent() Return the parent as a wrapped node (or None if no parent). .. py:method:: is_deformable() Check if this node is a deformable geometry type. .. py:method:: rename(new_name) Rename the node. .. py:method:: select() Select this node in the Maya scene. .. py:method:: set_color(color) Set the display color of the controller shapes. Args: color (int | tuple | list | Color): - int: Maya index color (0-31) - tuple/list: RGB values (0.0 - 1.0) - tik.core.Color: Color object - None: Disable color override .. py:method:: set_parent(new_parent: Any, relative: bool = False) -> None Set a new parent for this node. Args: new_parent: New parent node (str, Node wrapper, or None for world). relative: If True, keep local transforms (no world-space compensation). If False (default), preserve world-space placement by compensating transforms after parenting (similar to cmds.parent(relative=False)). .. py:property:: bounding_box Return the world axis-aligned bounding box of this node. Returns: OpenMaya.MBoundingBox: The bounding box in world space. .. py:property:: children Return children as wrapped nodes. Returns: list: List of child node wrappers. .. py:property:: color Get or set the display color of the node. Can be set to: - int: Maya index color (0-31) - tuple/list: RGB values (0.0-1.0) - Color: tik.core.Color object - None: Disable color override .. py:property:: dag_path Return the MDagPath for this node. Returns: OpenMaya.MDagPath: The DAG path of this node. .. py:attribute:: is_dag :value: True .. py:property:: parent Return the parent as a wrapped node (or None if no parent). Returns: Node wrapper or None: The parent node, or None if this is a world-level node. .. py:property:: visibility Get or set the visibility of this transform node.