Package mrv :: Package maya :: Module ns
[hide private]
[frames] | no frames]

Module ns

source code

Allows convenient access and handling of namespaces in an object oriented manner
Classes [hide private]
  Namespace
Represents a Maya namespace Namespaces follow the given nameing conventions:
Functions [hide private]
    internal utilties
 
_isRootOf(root, other)
Returns: True if other which may be a string, is rooted at 'root
source code
    Static Access
 
createNamespace(*args)
see Namespace.create
source code
 
currentNamespace()
see Namespace.current
source code
 
findUniqueNamespace(*args, **kwargs)
see Namespace.findUnique
source code
 
existsNamespace(namespace)
:return : True if given namespace ( name ) exists
source code
Variables [hide private]
    Static Access
  RootNamespace = Namespace(Namespace.rootpath)
Function Details [hide private]

_isRootOf(root, other)

source code 
Parameters:
  • other - '' = root namespace' hello:world => :hello:world
  • root - may be namespace or string. It must not have a ':' in front, hence it must be a relative naespace, and must end with a ':'.
Returns:
True if other which may be a string, is rooted at 'root

Note: the arguments are very specific, but this allows the method to be faster than usual