MObject Class Reference
 
 
 

#include <MObject.h>


Class Description

Generic Class for Accessing Internal Maya Objects.

Determine the exact type (MFn::Type) of an MObject within Maya.

Determine if an Object exists.

Determine if an Object is compatible with a specific Function Set.

MObject is the generic class for accessing all Maya internal modelling, animation and rendering Objects, collectively referred to as Model Objects, through the API. This includes all Dependency Graph (DG) Nodes, of which Directed Acyclic Graph (DAG) Nodes are a subset.

Each instance of an MObject represents a specific Node or Attribute on a Node in the DG. Under the C++ class scheme MObjects simply have type MObject with no base or derived hierarchy. However, MObjects may be many different types of Model objects, from Attributes to transforms, including components of geometry such as Control Vertices (CV), faces, edges and vertices. This allows many different types of objects to be moved accessed through the API without undue concern on the part of plug-in developers for the type of object being manipulated.

Since it is impractical to provide every applicable method in MObjects, the methods applicable to Maya Objects are encapsulated in Function Sets. Function Sets can be attached to compatible MObjects to provide an external interface to methods appropriate to that MObject.

The link between an MObject and the role it performs as a Maya Model object, as well as the compatibility between MObjects and Function Sets is managed by the API Run-Time Type Identification (RTTI) system. The two key concepts of this system are the Maya Object type and the Function Set type (both in MFn::Type). All MObjects have one and only one Maya Object type. All Function Sets have one and only one Function Set type. MObjects may, however, be compatible with many types of Function Sets. This compatibility follows the class hierarchy of the Function Sets. Thus an MObject with Maya Object type MFn::kNurbsSurface would be compatible with MFnNurbsSurface, MFnDagNode, MFnDependencyNode, MFnNamedObject and MFnBase.

Use the apiType() method to determine the type (MFn::Type) of the Maya Model Object.

Use hasFn() to determine if the Object is comaptible with a given Function Set.

Use isNull() to determine if the internal Maya Object exists.

Examples:

AbcExport/AbcExport.cpp, AbcExport/AbcWriteJob.cpp, AbcExport/AttributesWriter.cpp, AbcExport/MayaCameraWriter.cpp, AbcExport/MayaLocatorWriter.cpp, AbcExport/MayaMeshWriter.cpp, AbcExport/MayaMeshWriter.h, AbcExport/MayaNurbsCurveWriter.cpp, AbcExport/MayaNurbsSurfaceWriter.cpp, AbcExport/MayaPointPrimitiveWriter.cpp, AbcExport/MayaUtility.cpp, AbcExport/MayaUtility.h, AbcImport/AbcImport.cpp, AbcImport/AlembicNode.cpp, AbcImport/AlembicNode.h, AbcImport/CameraHelper.cpp, AbcImport/CameraHelper.h, AbcImport/CreateSceneHelper.cpp, AbcImport/CreateSceneHelper.h, AbcImport/LocatorHelper.cpp, AbcImport/LocatorHelper.h, AbcImport/main.cpp, AbcImport/MeshHelper.cpp, AbcImport/MeshHelper.h, AbcImport/NodeIteratorVisitorHelper.cpp, AbcImport/NodeIteratorVisitorHelper.h, AbcImport/NurbsCurveHelper.cpp, AbcImport/NurbsCurveHelper.h, AbcImport/NurbsSurfaceHelper.cpp, AbcImport/NurbsSurfaceHelper.h, AbcImport/PointHelper.cpp, AbcImport/PointHelper.h, AbcImport/util.cpp, AbcImport/util.h, AbcImport/XformHelper.cpp, AbcImport/XformHelper.h, affectsNode/affectsNode.cpp, animCubeNode/animCubeNode.cpp, animExportUtil/animExportUtil.cpp, animExportUtil/animExportUtil.h, animExportUtil/animFileExport.cpp, animExportUtil/animFileExport.h, animImportExport/animFileUtils.cpp, animImportExport/animFileUtils.h, animImportExport/animImportExport.cpp, animInfoCmd/animInfoCmd.cpp, anisotropicShader/anisotropicShader.cpp, apiMeshShape/apiMeshCreator.cpp, apiMeshShape/apiMeshCreator.h, apiMeshShape/apiMeshData.cpp, apiMeshShape/apiMeshData.h, apiMeshShape/apiMeshGeometryOverride.cpp, apiMeshShape/apiMeshGeometryOverride.h, apiMeshShape/apiMeshIterator.cpp, apiMeshShape/apiMeshIterator.h, apiMeshShape/apiMeshShape.cpp, apiMeshShape/apiMeshShape.h, apiMeshShape/apiMeshShapeUI.cpp, apiMeshShape/apiMeshSubSceneOverride.cpp, apiMeshShape/apiMeshSubSceneOverride.h, apiSimpleShape/apiSimpleShape.cpp, apiSimpleShape/apiSimpleShape.h, apiSimpleShape/apiSimpleShapeIterator.cpp, apiSimpleShape/apiSimpleShapeIterator.h, apiSimpleShape/apiSimpleShapeUI.cpp, arcLenNode/arcLenNode.cpp, AshliShader/AshliPluginMain.cpp, AshliShader/GLSLShaderNode.cpp, atomImportExport/atomAnimLayers.cpp, atomImportExport/atomCachedPlugs.cpp, atomImportExport/atomCachedPlugs.h, atomImportExport/atomFileUtils.cpp, atomImportExport/atomFileUtils.h, atomImportExport/atomImportExport.cpp, atomImportExport/atomNodeNameReplacer.cpp, backfillShader/backfillShader.cpp, blindComplexDataCmd/blindComplexDataCmd.cpp, blindDataShader/blindDataMesh.cpp, blindDataShader/blindDataMesh.h, blindDataShader/blindDataPluginMain.cpp, blindDataShader/blindDataShader.cpp, blindDoubleDataCmd/blindDoubleDataCmd.cpp, blindShortDataCmd/blindShortDataCmd.cpp, brickShader/brickShader.cpp, buildRotationNode/buildRotationNode.cpp, cameraSetSubclass/exCameraSet.cpp, cameraSetSubclass/exCameraSet.h, cameraSetSubclass/testExCameraSetCmd.cpp, cameraSetSubclass/testExCameraSetCmd.h, cellShader/cellShader.cpp, cgfxAttrDef.cpp, cgfxAttrDef.h, cgfxShaderCmd.cpp, cgfxShaderCmd.h, cgfxShaderNode.cpp, cgfxShaderNode.h, cgfxTextureCache.cpp, cgfxTextureCache.h, cgfxVector.cpp, cgfxVector.h, checkerShader/checkerShader.cpp, circleNode/circleNode.cpp, cleanPerFaceAssignment/cleanPerFaceAssignmentPluginMain.cpp, clearcoat.cpp, closestPointCmd/closestPointCmd.cpp, closestPointOnCurve/closestPointOnCurveNode.cpp, closestPointOnCurve/closestPointOnCurveNode.h, closestPointOnCurve/closestPointOnCurvePlugin.cpp, closestPointOnCurve/closestTangentUAndDistance.cpp, closestPointOnCurve/closestTangentUAndDistance.h, closestPointOnNurbsSurfaceCmd/closestPointOnNurbsSurfaceCmd.cpp, clothPaintAttrCmd/clothPaintAttrCmd.cpp, clusterWeightFunction/clusterWeightFunction.cpp, componentScaleManip/componentScaleManip.cpp, compositingShader/compositingShader.cpp, conditionTest/conditionTest.cpp, contrastShader/contrastShader.cpp, convertBumpCmd/convertBumpCmd.cpp, convertEdgesToFacesCmd/convertEdgesToFacesCmd.cpp, convertVerticesToEdgesCmd/convertVerticesToEdgesCmd.cpp, convertVerticesToFacesCmd/convertVerticesToFacesCmd.cpp, createClipCmd/createClipCmd.cpp, curvedArrowsNode/curvedArrowsNode.cpp, customAttrManip/customAttrManip.cpp, customImagePlane/customImagePlane.cpp, customPrimitiveGenerator/customPrimitiveGenerator.cpp, customTextureShader/customTextureShaderMainMaya.cpp, customTextureShader/customTextureShaderOverride.cpp, customTextureShader/customTextureShaderOverride.h, cvColorNode/cvColorNode.cpp, cvColorShader/cvColorShader.cpp, cvExpandCmd/cvExpandCmd.cpp, cvPosCmd/cvPosCmd.cpp, D3DViewportRenderer/D3DResourceManager.cpp, D3DViewportRenderer/D3DResourceManager.h, D3DViewportRenderer/D3DTextureItem.h, D3DViewportRenderer/D3DViewportRenderer.cpp, D3DViewportRenderer/D3DViewportRenderer.h, D3DViewportRenderer/D3DViewportRendererPlugin.cpp, dagMessageCmd/dagMessageCmd.cpp, dagPoseInfoCmd/dagPoseInfoCmd.cpp, ddsFloatReader.cpp, deletedMsgCmd/deletedMsgCmd.cpp, depthShader/depthShader.cpp, displacementShader/displacementShader.cpp, dx11Shader/crackFreePrimitiveGenerator.h, dx11Shader/dx11ConeAngleToHotspotConverter.cpp, dx11Shader/dx11Shader.cpp, dx11Shader/dx11Shader.h, dx11Shader/dx11ShaderCmd.cpp, dx11Shader/dx11ShaderOverride.cpp, dx11Shader/dx11ShaderOverride.h, dx11Shader/dx11ShaderPluginMain.cpp, DX11ViewportRenderer/DX11ResourceManager.cpp, DX11ViewportRenderer/DX11ResourceManager.h, DX11ViewportRenderer/DX11TextureItem.h, DX11ViewportRenderer/DX11ViewportRenderer.cpp, DX11ViewportRenderer/DX11ViewportRenderer.h, DX11ViewportRenderer/DX11ViewportRendererPlugin.cpp, dynExprField/dynExprField.cpp, dynExprField/dynExprField.h, eventTest/eventTest.cpp, exampleCameraSetView/exampleCameraSetViewCmd.cpp, exampleCameraSetView/exampleCameraSetViewCmd.h, exampleCameraSetView/exampleCameraSetViewMain.cpp, exampleRampAttribute/exampleMRampAttribute.cpp, exportJointClusterDataCmd/exportJointClusterDataCmd.cpp, exportSkinClusterDataCmd/exportSkinClusterDataCmd.cpp, externalDropCallback/externalDropCallback.cpp, fileIOMsgCmd/fileIOMsgCmd.cpp, fileTexture/fileTexture.cpp, filteredAsciiFile/filteredAsciiFile.cpp, findFileTexturesCmd/findFileTexturesCmd.cpp, findTexturesPerPolygonCmd/findTexturesPerPolygonCmd.cpp, flameShader/flameShader.cpp, flipUVCmd/flipUVCmd.cpp, flipUVCmd/flipUVCmd.h, flipUVCmd/flipUVMain.cpp, fluidInfoCmd/fluidInfoCmd.cpp, footPrintManip/footPrintManip.cpp, footPrintNode/footPrintNode.cpp, fullLoftNode/fullLoftNode.cpp, gameInputDevice/gameInputDevice.cpp, gammaShader/gammaShader.cpp, genericAttributeNode/genericAttributeNode.cpp, geometryCacheConverter/geometryCacheConverter.cpp, geometryReplicator/geometryReplicator.cpp, geometrySurfaceConstraint/geometrySurfaceConstraint.cpp, geometrySurfaceConstraint/geometrySurfaceConstraint.h, geomShader/geomShader.cpp, getAttrAffectsCmd/getAttrAffectsCmd.cpp, GLSLShaderNode.h, gpuCache/CacheReader.cpp, gpuCache/CacheReader.h, gpuCache/CacheReaderAlembic.cpp, gpuCache/CacheWriter.cpp, gpuCache/CacheWriter.h, gpuCache/gpuCacheCmd.cpp, gpuCache/gpuCacheDrawOverride.cpp, gpuCache/gpuCacheDrawOverride.h, gpuCache/gpuCacheGeometryOverride.cpp, gpuCache/gpuCacheGeometryOverride.h, gpuCache/gpuCacheMaterialBakers.cpp, gpuCache/gpuCachePluginMain.cpp, gpuCache/gpuCacheShapeNode.cpp, gpuCache/gpuCacheShapeNode.h, gpuCache/gpuCacheSubSceneOverride.cpp, gpuCache/gpuCacheSubSceneOverride.h, gpuCache/gpuCacheUtil.cpp, gpuCache/gpuCacheUtil.h, hairCollisionSolver/hairCollisionSolver.cpp, helix2Cmd/helix2Cmd.cpp, helixQtCmd.cpp, helixTool/helixTool.cpp, hlslShader/hlslPluginMain.cpp, hlslShader/hlslShader.cpp, hlslShader/hlslShader.h, hwAnisotropicShader_NV20/hwAnisotropicShader_NV20.cpp, hwAnisotropicShader_NV20/hwAnisotropicShader_NV20.h, hwAnisotropicShader_NV20/MTextureCache.cpp, hwAnisotropicShader_NV20/MTextureCache.h, hwAnisotropicShader_NV20/NodeMonitor.cpp, hwAnisotropicShader_NV20/NodeMonitor.h, hwAnisotropicShader_NV20/ShadingConnection.cpp, hwAnisotropicShader_NV20/ShadingConnection.h, hwApiTextureTest/hwApiTextureTest.cpp, hwColorPerVertexShader/hwColorPerVertexShader.cpp, hwDecalBumpShader_NV20/hwDecalBumpShader_NV20.cpp, hwDecalBumpShader_NV20/hwDecalBumpShader_NV20.h, hwDecalBumpShader_NV20/MTextureCache.cpp, hwDecalBumpShader_NV20/MTextureCache.h, hwDecalBumpShader_NV20/NodeMonitor.cpp, hwDecalBumpShader_NV20/NodeMonitor.h, hwDecalBumpShader_NV20/ShadingConnection.cpp, hwDecalBumpShader_NV20/ShadingConnection.h, hwManagedTextureShader/hwManagedTextureShader.cpp, hwPhongShader/hwPhongShader.cpp, hwPhongShader/hwPhongShader.h, hwPhongShader/hwPhongShaderBehavior.cpp, hwPhongShader/hwPhongShaderBehavior.h, hwReflectBumpShader_NV20/hwReflectBumpShader_NV20.cpp, hwReflectBumpShader_NV20/hwReflectBumpShader_NV20.h, hwReflectBumpShader_NV20/MTextureCache.cpp, hwReflectBumpShader_NV20/MTextureCache.h, hwReflectBumpShader_NV20/NodeMonitor.cpp, hwReflectBumpShader_NV20/NodeMonitor.h, hwReflectBumpShader_NV20/ShadingConnection.cpp, hwReflectBumpShader_NV20/ShadingConnection.h, hwRefractReflectShader_NV20/hwRefractReflectShader_NV20.cpp, hwRefractReflectShader_NV20/hwRefractReflectShader_NV20.h, hwRefractReflectShader_NV20/MTextureCache.cpp, hwRefractReflectShader_NV20/MTextureCache.h, hwRefractReflectShader_NV20/NodeMonitor.cpp, hwRefractReflectShader_NV20/NodeMonitor.h, hwRefractReflectShader_NV20/ShadingConnection.cpp, hwRefractReflectShader_NV20/ShadingConnection.h, hwRenderPostEffect/hwRenderPostEffect.cpp, hwToonShader_NV20/hwToonShader_NV20.cpp, hwToonShader_NV20/hwToonShader_NV20.h, hwToonShader_NV20/MTextureCache.cpp, hwToonShader_NV20/MTextureCache.h, hwToonShader_NV20/NodeMonitor.cpp, hwToonShader_NV20/NodeMonitor.h, hwToonShader_NV20/ShadingConnection.cpp, hwToonShader_NV20/ShadingConnection.h, hwUnlitShader/hwUnlitShader.cpp, hwUnlitShader/hwUnlitShader.h, hwUnlitShader/MTextureCache.cpp, hwUnlitShader/MTextureCache.h, hwUnlitShader/NodeMonitor.cpp, hwUnlitShader/NodeMonitor.h, hwUnlitShader/ShadingConnection.cpp, hwUnlitShader/ShadingConnection.h, iffInfoCmd/iffInfoCmd.cpp, iffPixelCmd/iffPixelCmd.cpp, iffPpmCmd/iffPpmCmd.cpp, instanceCallbackCmd/instanceCallbackCmd.cpp, instancerListCmd/instancerListCmd.cpp, interpShader/interpShader.cpp, intersectCmd/intersectCmd.cpp, intersectOnNurbsSurfaceCmd/intersectOnNurbsSurfaceCmd.cpp, jitterNode/jitterNode.cpp, jlcVcrDevice/jlcVcrDevice.cpp, lambertShader/lambertShader.cpp, lambertShader/lambertShaderOverride.cpp, lambertShader/lambertShaderOverride.h, lassoTool/lassoTool.cpp, latticeNoise/latticeNoise.cpp, latticeNoise/latticeNoise.h, latticeNoise/latticeNoiseCmd.cpp, latticeNoise/latticeNoiseNode.cpp, lavaShader/lavaShader.cpp, lensDistortionCallback/lensDistortionCallback.cpp, lensDistortionCallback/lensDistortionCallback.h, lepTranslator/lepTranslator.cpp, lightShader/lightShader.cpp, lineManip/lineManip.cpp, lineManipContainer/lineManipContainer.cpp, lineManipContainer/lineManipContainer.h, listLightLinksCmd/listLightLinksCmd.cpp, listPolyHolesCmd/listPolyHolesCmd.cpp, listRichSelectionCmd/listRichSelectionCmd.cpp, lockEvent/lockEvent.cpp, manipOverride/customTriadManip.cpp, manipOverride/customTriadManip.h, manipOverride/manipOverride.cpp, manipOverride/rockingTransform2.cpp, manipOverride/rockingTransform2.h, marqueeTool/marqueeTool.cpp, maTranslator/maTranslator.cpp, meshOpCmd/meshOpCmd.cpp, meshOpCmd/meshOpCmd.h, meshOpCmd/meshOpFty.cpp, meshOpCmd/meshOpFty.h, meshOpCmd/meshOpMain.cpp, meshOpCmd/meshOpNode.cpp, meshOpCmd/meshOpNode.h, meshOpCmd/polyModifierCmd.cpp, meshOpCmd/polyModifierCmd.h, meshOpCmd/polyModifierNode.cpp, meshOpCmd/polyModifierNode.h, meshReorder/meshRemapTool.cpp, meshReorder/meshReorderPlugin.cpp, meshReorder/meshReorderTool.cpp, MetadataSample/createMetadataCmd.cpp, MetadataSample/metadataBase.cpp, MetadataSample/metadataPlugin.cpp, MetadataSample/tweakMetadataNode.cpp, MetadataSample/tweakMetadataNode.h, MetadataXML/metadataXMLPlugin.cpp, mixtureShader/mixtureShader.cpp, motionPathCmd/motionPathCmd.cpp, motionTraceCmd/motionTraceCmd.cpp, moveCurveCVsCmd/moveCurveCVsCmd.cpp, moveManip/moveManip.cpp, moveNumericTool/moveNumericTool.cpp, moveTool/moveTool.cpp, multiCurveNode/multiCurveNode.cpp, multiPlugInfoCmd/multiPlugInfoCmd.cpp, narrowPolyViewer/narrowPolyViewer.h, narrowPolyViewer/narrowPolyViewerCmd.h, narrowPolyViewer/narrowPolyViewerMain.cpp, nodeCreatedCBCmd/nodeCreatedCBCmd.cpp, nodeCreatedCBCmd/nodeCreatedCBCmd.h, nodeIconCmd/nodeIconCmd.cpp, nodeInfoCmd/nodeInfoCmd.cpp, nodeMessageCmd/nodeMessageCmd.cpp, noiseShader/noiseShader.cpp, objExport/objExport.cpp, offsetNode/offsetNode.cpp, OpenEXR.cpp, OpenGLViewportRenderer/OpenGLViewportRenderer.cpp, OpenGLViewportRenderer/OpenGLViewportRendererPlugin.cpp, ownerEmitter/ownerEmitter.cpp, particleAttrNode/particleAttrNode.cpp, particleAttrNode/particleAttrNode.h, particleAttrNode/particleAttrNodeMain.cpp, particlePathsCmd/particlePathsCmd.cpp, particleSystemInfoCmd/particleSystemInfoCmd.cpp, peltOverlapCmd/peltOverlapCmd.cpp, pfxInfoCmd/pfxInfoCmd.cpp, phongShader/phongShader.cpp, phongShader/phongShaderOverride.cpp, phongShader/phongShaderOverride.h, pickCmd/pickCmd.cpp, pluginCallbacks/pluginCallbacks.cpp, pluginMain.cpp, pnTriangles/pnTrianglesNode.cpp, pnTriangles/pnTrianglesNode.h, pointOnMeshInfo/getPointAndNormal.cpp, pointOnMeshInfo/getPointAndNormal.h, pointOnMeshInfo/pointOnMeshInfoNode.cpp, pointOnMeshInfo/pointOnMeshInfoNode.h, pointOnMeshInfo/pointOnMeshInfoPlugin.cpp, pointOnSubdNode/pointOnSubdNode.cpp, pointOnSubdNode/pointOnSubdNode.h, polyMessageCmd/polyMessageCmd.cpp, polyPrimitiveCmd/polyPrimitiveCmd.cpp, polyRawExporter/polyRawExporter.cpp, polyRawExporter/polyRawExporter.h, polyRawExporter/polyWriter.cpp, polyRawExporter/polyWriter.h, polyTrgNode/polyTrgNode.cpp, polyX3DExporter/polyWriter.cpp, polyX3DExporter/polyWriter.h, polyX3DExporter/polyX3DExporter.cpp, polyX3DExporter/polyX3DExporter.h, progressWindowCmd/progressWindowCmd.cpp, qtForms.cpp, quadricShape/quadricShape.cpp, randomizerDevice/randomizerDevice.cpp, referenceQueryCmd/referenceQueryCmd.cpp, renderAccessNode/renderAccessNode.cpp, renderViewInteractiveRenderCmd/renderViewInteractiveRenderCmd.cpp, renderViewRenderCmd/renderViewRenderCmd.cpp, renderViewRenderRegionCmd/renderViewRenderRegionCmd.cpp, richMoveCmd/richMoveCmd.cpp, rockingTransform/rockingTransform.cpp, rockingTransform/rockingTransform.h, rockingTransform/rockingTransformMain.cpp, rockingTransformCheck/rockingTransform.cpp, rockingTransformCheck/rockingTransform.h, rockingTransformCheck/rockingTransformCheck.cpp, rockingTransformCheck/rockingTransformCheckMain.cpp, rotateManip/rotateManip.cpp, sampleCmd/sampleCmd.cpp, sampleParticles/sampleParticles.cpp, saveSwatchesCmd.cpp, scanDagCmd/scanDagCmd.cpp, scanDagSyntax/scanDagSyntax.cpp, sceneAssembly/adskPrepareRenderGlobals.cpp, sceneAssembly/adskPrepareRenderGlobals.h, sceneAssembly/adskRepresentations.cpp, sceneAssembly/assemblyDefinition.cpp, sceneAssembly/assemblyDefinition.h, sceneAssembly/assemblyReference.cpp, sceneAssembly/assemblyReference.h, sceneAssembly/assemblyReferenceInitialRep.cpp, sceneAssembly/assemblyReferenceInitialRep.h, sceneAssembly/sceneAssemblyPluginMain.cpp, selectClosestPointLocator/selectClosestPointLocator.cpp, selectClosestPointLocator/selectClosestPointLocator.h, shadowMatteShader/shadowMatteShader.cpp, ShapeMonitor/ShapeMonitor.cpp, ShapeMonitor/ShapeMonitor.h, shellNode/shellNode.cpp, shiftNode/shiftNode.cpp, simpleEmitter/simpleEmitter.cpp, simpleFluidEmitter/simpleFluidEmitter.cpp, simpleFluidEmitter/simpleFluidEmitter.h, simpleImageFile/simpleImageFile.cpp, simpleLoftNode/simpleLoftNode.cpp, simpleSolverNode/simpleSolverNode.cpp, simpleSpring/simpleSpring.cpp, simpleSpring/simpleSpring.h, sineNode/sineNode.cpp, skinClusterWeights/skinClusterWeights.cpp, slopeShader/slopeShader.cpp, slopeShader/slopeShaderBehavior.cpp, slopeShader/slopeShaderBehavior.h, slopeShader/slopeShaderNode.cpp, slopeShader/slopeShaderNode.h, solidCheckerShader/solidCheckerShader.cpp, spiralAnimCurveCmd/spiralAnimCurveCmd.cpp, splatDeformer/splatDeformer.cpp, splitUVCmd/polyModifierCmd.cpp, splitUVCmd/polyModifierCmd.h, splitUVCmd/polyModifierNode.cpp, splitUVCmd/polyModifierNode.h, splitUVCmd/splitUVCmd.cpp, splitUVCmd/splitUVCmd.h, splitUVCmd/splitUVFty.cpp, splitUVCmd/splitUVFty.h, splitUVCmd/splitUVMain.cpp, splitUVCmd/splitUVNode.cpp, splitUVCmd/splitUVNode.h, squareScaleManip/squareScaleManip.cpp, squareScaleManip/squareScaleManip.h, squareScaleManipContext/squareScaleManipContext.cpp, squareScaleManipContext/squareScaleManipContext.h, sseDeformer/sseDeformer.cpp, stringFormatNode/stringFormatNode.cpp, surfaceBumpManip/surfaceBumpManip.cpp, surfaceCreateCmd/surfaceCreateCmd.cpp, surfaceTwistCmd/surfaceTwistCmd.cpp, sweptEmitter/sweptEmitter.cpp, swissArmyManip/swissArmyManip.cpp, template/createTransformNodeTemplate/createTransformNodeTemplate.cpp, template/helloTemplateWorld/helloTemplateWorld.cpp, template/zoomCameraTemplate/zoomCameraTemplate.cpp, testCameraSetCmd/testCameraSetCmd.cpp, testNobjectNode/testNobjectNode.cpp, testNobjectNode/testNobjectNode.h, testNpassiveNode/testNpassiveNode.cpp, testNpassiveNode/testNpassiveNode.h, testNsolverNode/testNsolverNode.cpp, testNsolverNode/testNsolverNode.h, testNucleusNode/testNucleusNode.cpp, testNucleusNode/testNucleusNode.h, threadedBoundingBox/threadedBoundingBox.cpp, tiffFloatReader.cpp, torusField/torusField.cpp, torusField/torusField.h, transCircleNode/transCircleNode.cpp, translateCmd/translateCmd.cpp, udpDevice/udpDevice.cpp, uiDrawManager/uiDrawManager.cpp, undoRedoMsgCmd/undoRedoMsgCmd.cpp, userMsgCmd/userMsgCmd.cpp, vertexBufferGenerator/vertexBufferGenerator.cpp, vertexBufferMutator/vertexBufferMutator.cpp, viewCallbackTest/viewCallbackTest.cpp, viewDX11DeviceAccess/viewDX11DeviceAccess.cpp, viewImageBlitOverride/viewImageBlitOverrideMain.cpp, viewObjectFilter/viewObjectFilter.cpp, viewRenderOverride/viewRenderOverrideMain.cpp, viewRenderOverride/viewRenderOverrideOperations.cpp, viewRenderOverrideMRT/viewRenderOverrideMRTMain.cpp, viewRenderOverrideShadows/viewRenderOverrideShadows.cpp, viewRenderOverrideShadows/viewRenderOverrideShadowsMain.cpp, volumeShader/volumeShader.cpp, weightListNode/weightListNode.cpp, whatisCmd/whatisCmd.cpp, xmlAssembly/AssemblyCommand.cpp, xmlAssembly/AssemblyExporter.cpp, xmlAssembly/AssemblyExporter.h, xmlAssembly/AssemblyLoaderBase.cpp, xmlAssembly/AssemblyLoaderBase.h, xmlAssembly/AssemblyPreloader.cpp, xmlAssembly/AssemblyPreloader.h, xmlAssembly/AssemblySceneLoader.cpp, xmlAssembly/AssemblySceneLoader.h, xmlAssembly/AssetGuidManager.cpp, xmlAssembly/AssetGuidManager.h, xmlAssembly/BBoxesRep.cpp, xmlAssembly/BBoxesRep.h, xmlAssembly/BoundingBoxRep.cpp, xmlAssembly/BoundingBoxRep.h, xmlAssembly/CacheRep.cpp, xmlAssembly/CacheRep.h, xmlAssembly/ChildrenRep.cpp, xmlAssembly/ChildrenRep.h, xmlAssembly/FileRep.cpp, xmlAssembly/FileRep.h, xmlAssembly/FnAssetInstance.cpp, xmlAssembly/FnAssetInstance.h, xmlAssembly/FnAssetInstanceUtil.cpp, xmlAssembly/FnAssetInstanceUtil.h, xmlAssembly/LocatorRep.cpp, xmlAssembly/LocatorRep.h, xmlAssembly/pluginMain.cpp, xmlAssembly/XMLAssembly.cpp, xmlAssembly/XMLFileRep.cpp, xmlAssembly/XMLFileRep.h, xmlAssembly/XMLRepresentation.cpp, xmlAssembly/XMLRepresentation.h, XmlGeometryCache/XmlGeometryCache.cpp, XmlGeometryCacheDesc/XmlGeometryCacheDesc.cpp, yTwistNode/yTwistNode.cpp, and zoomCameraCmd/zoomCameraCmd.cpp.

List of all members.

Public Member Functions

  MObject ()
  Class Constructor.
  MObject (const MObject &other)
  Class Copy Constructor.
  ~MObject ()
  The class destructor.
bool  hasFn (MFn::Type fs) const
  Determines the whether or not the internal Object is compatible with the given Function Type.
bool  isNull () const
  Determines the whether or not an internal Object exists.
MFn::Type  apiType () const
  Determines the exact type of the Maya internal Object.
const char *  apiTypeStr () const
  Returns a string that gives the object's type is a readable form.
bool  operator== (const MObject &) const
  The comparison operator.
bool  operator!= (const MObject &) const
  The inequality operator.
MObject operator= (const MObject &)
  The assignment operator.

Static Public Attributes

static MObject  kNullObj
  Null Object for use as default argument.

Friends

class  MObjectHandle

Constructor & Destructor Documentation

MObject ( )

Class Constructor.

Creates an MObject. Initializes it as a null Object.

MObject ( const MObject other )

Class Copy Constructor.

Creates an MObject. Copies the object passed in.

Parameters:
[in] other MObject to copy from
~MObject ( )

The class destructor.

Destroys the current object if nothing refers to it.


Member Function Documentation

bool hasFn ( MFn::Type  fs ) const

Determines the whether or not the internal Object is compatible with the given Function Type.

Parameters:
[in] fs Function Set type
Returns:
  • true Is compatible
  • false Is not compatible
Examples:
AbcExport/AbcWriteJob.cpp, AbcExport/AttributesWriter.cpp, AbcExport/MayaMeshWriter.cpp, AbcExport/MayaNurbsCurveWriter.cpp, AbcExport/MayaNurbsSurfaceWriter.cpp, AbcExport/MayaUtility.cpp, AbcImport/AlembicNode.cpp, AbcImport/CreateSceneHelper.cpp, AbcImport/NodeIteratorVisitorHelper.cpp, animExportUtil/animExportUtil.cpp, atomImportExport/atomCachedPlugs.cpp, atomImportExport/atomFileUtils.cpp, atomImportExport/atomImportExport.cpp, atomImportExport/atomNodeNameReplacer.cpp, closestPointOnCurve/closestPointOnCurveCmd.cpp, componentScaleManip/componentScaleManip.cpp, D3DViewportRenderer/D3DViewportRenderer.cpp, dx11Shader/dx11Shader.cpp, geometryReplicator/geometryReplicator.cpp, gpuCache/CacheReaderAlembic.cpp, gpuCache/gpuCacheCmd.cpp, gpuCache/gpuCacheMaterialBakers.cpp, gpuCache/gpuCacheUtil.cpp, gpuCache/gpuCacheUtil.h, hwAnisotropicShader_NV20/hwAnisotropicShader_NV20.cpp, hwAnisotropicShader_NV20/MTextureCache.cpp, hwAnisotropicShader_NV20/NodeMonitor.cpp, hwAnisotropicShader_NV20/ShadingConnection.cpp, hwDecalBumpShader_NV20/MTextureCache.cpp, hwDecalBumpShader_NV20/NodeMonitor.cpp, hwDecalBumpShader_NV20/ShadingConnection.cpp, hwPhongShader/hwPhongShaderBehavior.cpp, hwReflectBumpShader_NV20/MTextureCache.cpp, hwReflectBumpShader_NV20/NodeMonitor.cpp, hwReflectBumpShader_NV20/ShadingConnection.cpp, hwRefractReflectShader_NV20/MTextureCache.cpp, hwRefractReflectShader_NV20/NodeMonitor.cpp, hwRefractReflectShader_NV20/ShadingConnection.cpp, hwToonShader_NV20/hwToonShader_NV20.cpp, hwToonShader_NV20/MTextureCache.cpp, hwToonShader_NV20/NodeMonitor.cpp, hwToonShader_NV20/ShadingConnection.cpp, hwUnlitShader/MTextureCache.cpp, hwUnlitShader/NodeMonitor.cpp, hwUnlitShader/ShadingConnection.cpp, instanceCallbackCmd/instanceCallbackCmd.cpp, meshReorder/meshRemapTool.cpp, meshReorder/meshReorderTool.cpp, moveManip/moveManip.cpp, nodeCreatedCBCmd/nodeCreatedCBCmd.cpp, pointOnMeshInfo/pointOnMeshCmd.cpp, rotateManip/rotateManip.cpp, skinClusterWeights/skinClusterWeights.cpp, slopeShader/slopeShaderBehavior.cpp, surfaceBumpManip/surfaceBumpManip.cpp, testCameraSetCmd/testCameraSetCmd.cpp, and xmlAssembly/FnAssetInstanceUtil.cpp.
bool isNull ( ) const

Determines the whether or not an internal Object exists.

Returns:
  • true Object does not exist
  • false Object exists
Examples:
AbcExport/MayaMeshWriter.cpp, AbcImport/CreateSceneHelper.cpp, AbcImport/NodeIteratorVisitorHelper.cpp, AbcImport/NurbsSurfaceHelper.cpp, animExportUtil/animExportUtil.cpp, animExportUtil/animFileExport.cpp, animImportExport/animFileUtils.cpp, apiMeshShape/apiMeshShape.cpp, apiMeshShape/apiMeshShapeUI.cpp, apiSimpleShape/apiSimpleShape.cpp, apiSimpleShape/apiSimpleShapeUI.cpp, atomImportExport/atomFileUtils.cpp, atomImportExport/atomImportExport.cpp, cgfxAttrDef.cpp, componentScaleManip/componentScaleManip.cpp, convertEdgesToFacesCmd/convertEdgesToFacesCmd.cpp, convertVerticesToEdgesCmd/convertVerticesToEdgesCmd.cpp, convertVerticesToFacesCmd/convertVerticesToFacesCmd.cpp, cvExpandCmd/cvExpandCmd.cpp, cvPosCmd/cvPosCmd.cpp, dagMessageCmd/dagMessageCmd.cpp, dx11Shader/dx11Shader.cpp, exportJointClusterDataCmd/exportJointClusterDataCmd.cpp, findTexturesPerPolygonCmd/findTexturesPerPolygonCmd.cpp, geometrySurfaceConstraint/geometrySurfaceConstraint.cpp, gpuCache/CacheReader.cpp, gpuCache/CacheReaderAlembic.cpp, gpuCache/gpuCacheCmd.cpp, gpuCache/gpuCacheGeometryOverride.cpp, gpuCache/gpuCacheMaterialBakers.cpp, gpuCache/gpuCacheUtil.cpp, lassoTool/lassoTool.cpp, latticeNoise/latticeNoiseNode.cpp, listRichSelectionCmd/listRichSelectionCmd.cpp, meshOpCmd/polyModifierCmd.cpp, moveManip/moveManip.cpp, objExport/objExport.cpp, richMoveCmd/richMoveCmd.cpp, rockingTransformCheck/rockingTransformCheck.cpp, rotateManip/rotateManip.cpp, shellNode/shellNode.cpp, skinClusterWeights/skinClusterWeights.cpp, slopeShader/slopeShaderBehavior.cpp, spiralAnimCurveCmd/spiralAnimCurveCmd.cpp, splitUVCmd/polyModifierCmd.cpp, sseDeformer/sseDeformer.cpp, surfaceBumpManip/surfaceBumpManip.cpp, xmlAssembly/BBoxesRep.cpp, xmlAssembly/BoundingBoxRep.cpp, xmlAssembly/FnAssetInstance.cpp, and xmlAssembly/FnAssetInstanceUtil.cpp.
const char * apiTypeStr ( ) const

Returns a string that gives the object's type is a readable form.

This is useful for debugging when type of an object needs to be printed.

Returns:
  • a string containing the type name of the object
Examples:
AbcExport/AbcWriteJob.cpp, AbcExport/AttributesWriter.cpp, cvPosCmd/cvPosCmd.cpp, filteredAsciiFile/filteredAsciiFile.cpp, lassoTool/lassoTool.cpp, nodeInfoCmd/nodeInfoCmd.cpp, and whatisCmd/whatisCmd.cpp.
bool operator== ( const MObject other ) const

The comparison operator.

Returns true if both MObjects refer to the same Maya object.

bool operator!= ( const MObject other ) const

The inequality operator.

Returns true if the MObjects refer to different Maya objects.

MObject & operator= ( const MObject other )

The assignment operator.

Destroys the current object if no other MObjects refer to it. Points this object to the passed in object.


The documentation for this class was generated from the following files: