pymel.core.rendering.renderPassRegistry¶
- renderPassRegistry(*args, **kwargs)¶
query information related with render passes.
Flags:
Long Name / Short Name Argument Types Properties channels / ch int Specify the number of channels for query. 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. passID / pi unicode Specify the render pass ID for query. passName / pn bool Get the pass name for the passID. This flag must be specified by the flag -passID firstly. renderer / r unicode Specify a renderer when using this command. By default the current renderer is specified. supportedChannelCounts / scc bool List channel counts supported by the renderer(specified by the flag -renderer) and the specified pass ID. This flag must be specified by the flag -passID firstly. 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. supportedPassSemantics / ps bool List pass semantics supported by the specified passID. This flag must be specified by the flag -passId firstly. supportedRenderPassNames / spn bool List render pass names supported by the renderer(specified by the flag -renderer). supportedRenderPasses / srp bool List render passes supported by the renderer(specified by the flag -renderer). Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.renderPassRegistry
Example:
import pymel.core as pm # 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] #