Namespace

class cgp_maya_utils.scene.Namespace(namespace)

Bases: object

namespace object that manipulates a namespace

classmethod create(name)

create a namespace

Parameters:name (str) – name of the namespace to create
Returns:the created namespace
Return type:cgp_maya_utils.scene.Namespace
fullName(asAbsolute=True)

the full name of the namespace

Parameters:asAbsolute (bool) – True : full name is returned asAbsolute - False full name is returned as relative
Returns:the full name of the namespace
Return type:str
isCurrent()

check is the namespace is the current namespace

name()

the name of the namespace

Returns:the name of the namespace
Return type:str
parent()

the parent namespace of the namespace

setAsCurrent()

set the namespace as current namespace