src/jmLightToolkit.py
def _eitherCreateGetNode(self, node_type, node_name):
        """ Either create or get existing node.

            Args:
                node_type (str): Node type to either get or create.
                node_name (str): Node name to either get or create.

            Returns:
                (PyNode): Node either getted or created.
        """
        node = None
        if pm.objExists(node_name):
            node = pm.PyNode(node_name)
        else:
            if node_type == "grp":
                node = pm.group(em=True, n=node_name)
            else:
                node = pm.createNode(node_type, n=node_name, ss=True)

        return node
 Either create or get existing node.

            Args:
                node_type (str): Node type to either get or create.
                node_name (str): Node name to either get or create.

            Returns:
                (PyNode): Node either getted or created.
        
Either create or get existing node.
Either create or get existing node .
def _eitherCreateGetNode(self, node_type, node_name):
        node = None
        if pm.objExists(node_name):
            node = pm.PyNode(node_name)
        else:
            if node_type == "grp":
                node = pm.group(em=True, n=node_name)
            else:
                node = pm.createNode(node_type, n=node_name, ss=True)
        return node
def _eitherCreateGetNode ( self , node_type , node_name ) : node = None if pm . objExists ( node_name ) : node = pm . PyNode ( node_name ) else : if node_type == "grp" : node = pm . group ( em = True , n = node_name ) else : node = pm . createNode ( node_type , n = node_name , ss = True ) return node
Either create or get existing node.
Either create or get existing node .
""" Either create or get existing node.

            Args:
                node_type (str): Node type to either get or create.
                node_name (str): Node name to either get or create.

            Returns:
                (PyNode): Node either getted or created.
        """
Node either getted or created.
Node either getted or created .
(PyNode)
self
node_type
Node type to either get or create.
Node type to either get or create .
node_name
Node name to either get or create.
Node name to either get or create .