Esempio n. 1
0
def convert_hierarchy(rootnode,  settings=SETTINGS_DEFAULT):
    result = skeletonutils.convert_to_skeleton(rootnode,
                                               joint_size=settings['joint_size'],
                                               prefix=settings['prefix'],
                                               rcol=settings['right_color'],
                                               lcol=settings['left_color'],
                                               ccol=settings['center_color'])
    pmc.delete(rootnode)
    return result
def convert_hierarchy(rootnode,  settings=SETTINGS_DEFAULT):
    result = skeletonutils.convert_to_skeleton( #(3)
        rootnode,
        joint_size=settings['joint_size'],
        prefix=settings['prefix'],
        rcol=settings['right_color'],
        lcol=settings['left_color'],
        ccol=settings['center_color'])
    pmc.delete(rootnode)
    return result
def convert_hierarchy(node):
    """Converts the hierarchy under and included `rootnode`
    into joints in the same namespace as `rootnode`.
    Deletes `rootnode` and its hierarchy.
    Connections to nodes are not preserved on the newly
    created joints.
    """
    result = skeletonutils.convert_to_skeleton(node)
    pmc.delete(node)
    return result
Esempio n. 4
0
def convert_hierarchy(node):
    """Converts the hierarchy under and included `rootnode`
    into joints in the same namespace as `rootnode`.
    Deletes `rootnode` and its hierarchy.
    Connections to nodes are not preserved on the newly
    created joints.
    """
    result = skeletonutils.convert_to_skeleton(node)
    pmc.delete(node)
    return result
Esempio n. 5
0
def convert_hierarchy(node, settings=SETTINGS_DEFAULT):
    '''
    Converts the hierarchy under the included 'rootnode' into joints in the same namespace as 'rootnode'
    Deletes 'rootnode' and its hierarchy
    Connections to nodes are not preserved on the newly created joints.
    '''
    result = skeletonutils.convert_to_skeleton(node,
                                               jnt_size = settings['joint_size'],
                                               prefix = settings['prefix'],
                                               rcol = settings['right_colour'],
                                               lcol = settings['left_colour'],
                                               ccol = settings['centre_colour'])
    pmc.delete(node)
    return result
Esempio n. 6
0
def convert_hierarchy(rootnode, settings=SETTINGS_DEFAULT):
    """Converts the hierarchy under an included 'rootnode'
    into joints in the same namespace as 'rootnode'.
    Deletes 'rootnode' and its hierarchy.
    Connections to nodes are not preserved on the newly created joints.
    """
    result = skeletonutils.convert_to_skeleton(
        rootnode,
        joint_size=settings['joint_size'],
        prefix=settings['prefix'],
        rcol=settings['right_color'],
        lcol=settings['left_color'],
        ccol=settings['center_color'])
    pmc.delete(rootnode)
    return result