Class to allow access to hardware draw context information. Method resolution order: - MDrawContext - MFrameContext - __builtin__.object
Static Public Attributes | |
int | kFilteredIgnoreLightLimit = 1 |
int | kFilteredToLightLimit = 0 |
![]() | |
int | k2dViewport = 1 |
int | k3dViewport = 0 |
int | kAmbientLight = 1 |
int | kAmbientOcclusion = 0 |
int | kAntiAliasing = 4 |
int | kBackfaceCulling = 2048 |
int | kBoundingBox = 4 |
int | kCustomLights = 5 |
int | kDefaultMaterial = 16 |
int | kDepthOfField = 3 |
int | kDepthPeeling = 3 |
int | kExcludeAll = 18446744073709551615L |
int | kExcludeCVs = 131072L |
int | kExcludeCameras = 32L |
int | kExcludeClipGhosts = 17179869184L |
int | kExcludeControllers = 68719476736L |
int | kExcludeDeformers = 256L |
int | kExcludeDimensions = 4096L |
int | kExcludeDynamicConstraints = 134217728L |
int | kExcludeDynamics = 512L |
int | kExcludeFluids = 2097152L |
int | kExcludeFollicles = 4194304L |
int | kExcludeGreasePencils = 34359738368L |
int | kExcludeGrid = 65536L |
int | kExcludeHUD = 8589934592L |
int | kExcludeHairSystems = 8388608L |
int | kExcludeHoldOuts = 2147483648L |
int | kExcludeHulls = 262144L |
int | kExcludeIkHandles = 128L |
int | kExcludeImagePlane = 16777216L |
int | kExcludeJoints = 64L |
int | kExcludeLights = 16L |
int | kExcludeLocators = 2048L |
int | kExcludeManipulators = 268435456L |
int | kExcludeMeshes = 4L |
int | kExcludeMotionTrails = 1073741824L |
int | kExcludeNCloths = 33554432L |
int | kExcludeNParticles = 536870912L |
int | kExcludeNRigids = 67108864L |
int | kExcludeNone = 0L |
int | kExcludeNurbsCurves = 1L |
int | kExcludeNurbsSurfaces = 2L |
int | kExcludeParticleInstancers = 1024L |
int | kExcludePivots = 16384L |
int | kExcludePlanes = 8L |
int | kExcludePluginShapes = 4294967296L |
int | kExcludeSelectHandles = 8192L |
int | kExcludeStrokes = 524288L |
int | kExcludeSubdivSurfaces = 1048576L |
int | kExcludeTextures = 32768L |
int | kFlatShaded = 256 |
int | kFogExp = 1 |
int | kFogExp2 = 2 |
int | kFogLinear = 0 |
int | kGammaCorrection = 2 |
int | kGouraudShaded = 1 |
int | kImage = 2 |
int | kLightDefault = 2 |
int | kMotionBlur = 1 |
int | kNoLighting = 0 |
int | kObjectSorting = 1 |
int | kProjectionInverseMtx = 10 |
int | kProjectionMtx = 8 |
int | kProjectionTranposeMtx = 9 |
int | kProjectionTranspInverseMtx = 11 |
int | kSceneLights = 4 |
int | kSelectedLights = 3 |
int | kShadeActiveOnly = 512 |
int | kSmoothWireframe = 4096 |
int | kTextured = 8 |
int | kTwoSidedLighting = 128 |
int | kUnsorted = 0 |
int | kViewColorTransformEnabled = 2 |
int | kViewDirection = 1 |
int | kViewFarClipValue = 6 |
int | kViewInverseMtx = 6 |
int | kViewMtx = 4 |
int | kViewNearClipValue = 5 |
int | kViewPosition = 0 |
int | kViewProjInverseMtx = 14 |
int | kViewProjMtx = 12 |
int | kViewProjTranposeMtx = 13 |
int | kViewProjTranspInverseMtx = 15 |
int | kViewRight = 3 |
int | kViewTranspInverseMtx = 7 |
int | kViewTransposeMtx = 5 |
int | kViewUnnormalizedFarClipValue = 8 |
int | kViewUnnormlizedNearClipValue = 7 |
int | kViewUp = 2 |
int | kViewportPixelSize = 4 |
int | kWeightedAverage = 2 |
int | kWireFrame = 2 |
int | kWireFrameOnShadedNone = 2 |
int | kWireFrameOnShadedReduced = 1 |
int | kWireframeOnShadedFull = 0 |
int | kWorldInverseMtx = 2 |
int | kWorldMtx = 0 |
int | kWorldTranspInverseMtx = 3 |
int | kWorldTransposeMtx = 1 |
int | kWorldViewInverseMtx = 18 |
int | kWorldViewMtx = 16 |
int | kWorldViewProjInverseMtx = 22 |
int | kWorldViewProjMtx = 20 |
int | kWorldViewProjTranspInverseMtx = 23 |
int | kWorldViewProjTransposeMtx = 21 |
int | kWorldViewTranspInverseMtx = 19 |
int | kWorldViewTransposeMtx = 17 |
int | kXray = 64 |
int | kXrayActiveComponents = 1024 |
int | kXrayJoint = 32 |
Additional Inherited Members | |
![]() | |
inUserInteraction () | |
semanticToMatrixType () | |
semanticToTupleType () | |
shadeTemplates () | |
userChangingViewContext () | |
wireOnShadedMode () | |
OpenMayaRender.MDrawContext.__init__ | ( | ) |
x.__init__(...) initializes x; see help(type(x)) for signature
OpenMayaRender.MDrawContext.__init__ | ( | ) |
x.__init__(...) initializes x; see help(type(x)) for signature
OpenMayaRender.MDrawContext.copyCurrentColorRenderTarget | ( | ) |
copyCurrentColorRenderTarget(string) -> MRenderTarget Get a copy of the current color render target. When the object is no longer needed, MRenderTargetManager::releaseRenderTarget() should be called to notify the target manager that the caller is done with the render target.
OpenMayaRender.MDrawContext.copyCurrentColorRenderTarget | ( | ) |
copyCurrentColorRenderTarget(string) -> MRenderTarget Get a copy of the current color render target. When the object is no longer needed, MRenderTargetManager::releaseRenderTarget() should be called to notify the target manager that the caller is done with the render target.
OpenMayaRender.MDrawContext.copyCurrentColorRenderTargetToTexture | ( | ) |
copyCurrentColorRenderTargetToTexture() -> MTexture Get a copy of the current color render target as a texture. When the texture is no longer needed, MTextureManager::releaseTexture() should be called.
OpenMayaRender.MDrawContext.copyCurrentColorRenderTargetToTexture | ( | ) |
copyCurrentColorRenderTargetToTexture() -> MTexture Get a copy of the current color render target as a texture. When the texture is no longer needed, MTextureManager::releaseTexture() should be called.
OpenMayaRender.MDrawContext.copyCurrentDepthRenderTarget | ( | ) |
copyCurrentDepthRenderTarget(string) -> MRenderTarget Get a copy of the current depth render target. When the object is no longer needed, MRenderTargetManager::releaseRenderTarget() should be called to notify the target manager that the caller is done with the render target.
OpenMayaRender.MDrawContext.copyCurrentDepthRenderTarget | ( | ) |
copyCurrentDepthRenderTarget(string) -> MRenderTarget Get a copy of the current depth render target. When the object is no longer needed, MRenderTargetManager::releaseRenderTarget() should be called to notify the target manager that the caller is done with the render target.
OpenMayaRender.MDrawContext.copyCurrentDepthRenderTargetToTexture | ( | ) |
copyCurrentDepthRenderTargetToTexture() -> MTexture Get a copy of the current depth render target as a texture. When the texture is no longer needed, MTextureManager::releaseTexture() should be called.
OpenMayaRender.MDrawContext.copyCurrentDepthRenderTargetToTexture | ( | ) |
copyCurrentDepthRenderTargetToTexture() -> MTexture Get a copy of the current depth render target as a texture. When the texture is no longer needed, MTextureManager::releaseTexture() should be called.
OpenMayaRender.MDrawContext.getDepthRange | ( | ) |
getDepthRange() -> [float, float] Get the depth range which specifies the mapping of depth values from normalized device coordinates to window coordinates. The depth range values are normally 0.0 and 1.0.
OpenMayaRender.MDrawContext.getDepthRange | ( | ) |
getDepthRange() -> [float, float] Get the depth range which specifies the mapping of depth values from normalized device coordinates to window coordinates. The depth range values are normally 0.0 and 1.0.
OpenMayaRender.MDrawContext.getFrameStamp | ( | ) |
getFrameStamp() -> long Returns the current frame stamp.
OpenMayaRender.MDrawContext.getFrameStamp | ( | ) |
getFrameStamp() -> long Returns the current frame stamp.
OpenMayaRender.MDrawContext.getFrustumBox | ( | ) |
getFrustumBox() -> MBoundingBox Get the bounding box of the current view frustum in world space.
OpenMayaRender.MDrawContext.getFrustumBox | ( | ) |
getFrustumBox() -> MBoundingBox Get the bounding box of the current view frustum in world space.
OpenMayaRender.MDrawContext.getLightInformation | ( | ) |
getLightInformation(lightNumber, lightFilter=kFilteredToLightLimit) -> [positions, direction, intensity, color, hasDirection, hasPosition] Return common lighting information for a given active light.
OpenMayaRender.MDrawContext.getLightInformation | ( | ) |
getLightInformation(lightNumber, lightFilter=kFilteredToLightLimit) -> [positions, direction, intensity, color, hasDirection, hasPosition] Return common lighting information for a given active light.
OpenMayaRender.MDrawContext.getLightParameterInformation | ( | ) |
getLightParameterInformation(lightNumber, lightFilter=kFilteredToLightLimit) -> MLightParameterInformation Return parameter information for a given active light.
OpenMayaRender.MDrawContext.getLightParameterInformation | ( | ) |
getLightParameterInformation(lightNumber, lightFilter=kFilteredToLightLimit) -> MLightParameterInformation Return parameter information for a given active light.
OpenMayaRender.MDrawContext.getPassContext | ( | ) |
getPassContext() -> MPassContext Access the current pass context.
OpenMayaRender.MDrawContext.getPassContext | ( | ) |
getPassContext() -> MPassContext Access the current pass context.
OpenMayaRender.MDrawContext.getRenderTargetSize | ( | ) |
getRenderTargetSize() -> [int, int] Get the size of the render target (output buffer) being rendered into. The dimensions of the target are in pixels
OpenMayaRender.MDrawContext.getRenderTargetSize | ( | ) |
getRenderTargetSize() -> [int, int] Get the size of the render target (output buffer) being rendered into. The dimensions of the target are in pixels
OpenMayaRender.MDrawContext.getSceneBox | ( | ) |
getSceneBox() -> MBoundingBox Get a bounding box of the scene in world space.
OpenMayaRender.MDrawContext.getSceneBox | ( | ) |
getSceneBox() -> MBoundingBox Get a bounding box of the scene in world space.
OpenMayaRender.MDrawContext.getStateManager | ( | ) |
getStateManager() -> MStateManager Access the GPU state manager for the current draw context.
OpenMayaRender.MDrawContext.getStateManager | ( | ) |
getStateManager() -> MStateManager Access the GPU state manager for the current draw context.
OpenMayaRender.MDrawContext.numberOfActiveLights | ( | ) |
numberOfActiveLights(lightFilter=kFilteredToLightLimit) -> int Return the number of available lights to render the scene, only considering lights which pass the filter option.
OpenMayaRender.MDrawContext.numberOfActiveLights | ( | ) |
numberOfActiveLights(lightFilter=kFilteredToLightLimit) -> int Return the number of available lights to render the scene, only considering lights which pass the filter option.
OpenMayaRender.MDrawContext.viewDirectionAlongNegZ | ( | ) |
viewDirectionAlongNegZ() -> bool Return whether the view direction is pointing down the -Z axis.
OpenMayaRender.MDrawContext.viewDirectionAlongNegZ | ( | ) |
viewDirectionAlongNegZ() -> bool Return whether the view direction is pointing down the -Z axis.