pymel.core.rendering.renderGlobalsNode¶
- renderGlobalsNode(*args, **kwargs)¶
This command creates a new node in the dependency graph of the specified type. The renderGlobalsNode creates a render globals node and registers it with the model. The createNode command will not register nodes of this type correctly.
Flags:
Long Name / Short Name Argument Types Properties name / n unicode Sets the name of the newly-created node. If it contains namespace path, the new node will be created under the specified namespace; if the namespace doesn’t exist, we will create the namespace. parent / p unicode Specifies the parent in the DAG under which the new node belongs. renderQuality / rq unicode Set the quality to be the renderQuality node with the given name. renderResolution / rr unicode Set the resolution to be the resolution node with the given name. shared / s bool This node is shared across multiple files, so only create it if it does not already exist. skipSelect / ss bool This node is not to be selected after creation, the original selection will be preserved. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.renderGlobalsNode
Example:
import pymel.core as pm pm.renderGlobalsNode('bob') # Result: u'renderGlobals1' # # this one will use defaults for resolution and quality pm.renderGlobalsNode('bob', name='bob' ) # Result: u'bob' # pm.renderGlobalsNode('bob', rq='myTestQuality1', name='abekasTestGlobals' ) # Result: u'abekasTestGlobals' #