query information related with render passes.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
channels (ch) | int | ||
|
|||
isPassSupported (ips) | bool | ||
Return whether the pass is supported by the renderer This flag must be specified by the flag -passID firstly. The renderer whose default value is the current renderer is specified by the flag renderer.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
passID (pi) | unicode | ||
|
|||
passName (pn) | bool | ||
|
|||
renderer (r) | unicode | ||
|
|
|||
supportedDataTypes (sdt) | bool | ||
List frame buffer types supported by the renderer(specified by the flag -renderer), the specified passID and channels. This flag must be specified by the flag -passID and -channels firstly. |
|
|
|||
supportedRenderPasses (srp) | bool | ||
|
Derived from mel command maya.cmds.renderPassRegistry
Example:
import pymel.core as pm
import maya.cmds as cmds
# Get supported channel counts supported by renderer mentalRay and the passID "DIFF".
pm.renderPassRegistry(passID='DIFF',renderer='mentalRay', supportedChannelCounts=True)
# Result: [4, 3] #
#
# Get supported data types supported by renderer mentalRay, the passID "DIFF" and the channels "3".
pm.renderPassRegistry(passID='DIFF', renderer='mentalRay', channels=3, supportedDataTypes=True)
# Result: [1, 2, 256, 512] #