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)]
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