[ CLASS ] - Class to operate on referenced nodes in Maya.
More...
[ CLASS ] - Class to operate on referenced nodes in Maya.
import sys
sys.stdout.write(reference.exists())
sys.stdout.write(reference.setNode(node='someMayaFile:pCube1'))
sys.stdout.write(reference.node())
sys.stdout.write(reference.reload())
sys.stdout.write(reference.duplicate())
sys.stdout.write(reference.remove())
◆ __init__()
def mMayaCore.referenceLib.Reference.__init__ |
( |
|
self, |
|
|
|
node = None |
|
) |
| |
◆ node()
def mMayaCore.referenceLib.Reference.node |
( |
|
self | ) |
|
Node.
- Exceptions
-
- Returns
- str - Name of the node.
-
None - If node is not set.
◆ exists()
def mMayaCore.referenceLib.Reference.exists |
( |
|
self | ) |
|
Check whether the node exists.
Checks whether node is None. Checks whether the node exists.
- Exceptions
-
- Returns
- bool - Result.
◆ setNode()
def mMayaCore.referenceLib.Reference.setNode |
( |
|
self, |
|
|
|
node |
|
) |
| |
Set node.
Returns False if the node is not a referenced node.
- Parameters
-
node | [ str | None | in ] - Name of the node. |
- Exceptions
-
- Returns
- bool - Result.
◆ reload()
def mMayaCore.referenceLib.Reference.reload |
( |
|
self | ) |
|
Reload the referenced node.
- Exceptions
-
- Returns
- bool - Result.
◆ duplicate()
def mMayaCore.referenceLib.Reference.duplicate |
( |
|
self | ) |
|
Duplicate given referenced node.
- Exceptions
-
- Returns
- str - Resolved name of the referenced file.
-
None - If not is not set.
◆ remove()
def mMayaCore.referenceLib.Reference.remove |
( |
|
self | ) |
|
Remove the given referenced node.
- Exceptions
-
- Returns
- bool - Result.
◆ isNodeReferenced()
def mMayaCore.referenceLib.Reference.isNodeReferenced |
( |
|
node | ) |
|
|
static |
Check whether the given node is a referenced node.
- Parameters
-
node | [ str | None | in ] - Name of the node. |
- Exceptions
-
- Returns
- bool - Result.
◆ create()
def mMayaCore.referenceLib.Reference.create |
( |
|
mayaFile, |
|
|
|
nameSpace = None |
|
) |
| |
|
static |
Create reference from given file.
If nameSpace argument left out, file name will be the name space for the referenced nodes.
- Parameters
-
mayaFile | [ str | None | in ] - Name of the file, Maya ASCII or Maya Binary. |
nameSpace | [ str | None | in ] - Namespace of the referenced nodes. |
- Exceptions
-
- Returns
- str - Resolved name of the referenced file.
-
None - If maya file doesn't exist.
◆ duplicateSelected()
def mMayaCore.referenceLib.Reference.duplicateSelected |
( |
| ) |
|
|
static |
Duplicate selected referenced nodes.
- Exceptions
-
- Returns
- None
◆ removeSelected()
def mMayaCore.referenceLib.Reference.removeSelected |
( |
| ) |
|
|
static |
Remove selected referenced nodes.
Method actually removes the referenced file which will be retrieved from the referenced nodes.
- Exceptions
-
- Returns
- None
◆ reloadSelected()
def mMayaCore.referenceLib.Reference.reloadSelected |
( |
| ) |
|
|
static |
Reload selected referenced nodes.
Method actually reloads the referenced file which will be retrieved from the referenced nodes.
- Exceptions
-
- Returns
- None
The documentation for this class was generated from the following file: