Ejemplo n.º 1
0
def lsUI(**kwargs):
    """
Modified:
  - long defaults to True
  - if no type is passed, defaults to all known types
    """
    import uitypes
    return [uitypes.PyUI(x) for x in _lsUI(**kwargs)]
Ejemplo n.º 2
0
def setParent(*args, **kwargs):
    """
Modifications
  - returns None object instead of the string 'NONE'
    """
    import uitypes
    result = cmds.setParent(*args, **kwargs)
    if kwargs.get('query', False) or kwargs.get('q', False):
        if result == 'NONE':
            result = None
        else:
            result = uitypes.PyUI(result)
    return result