[Maya API] two, three types of Maya API

MFn (library) MIt (iterators) MPx (Acting)

1.MFn - FunctionSet classes

Overview:

        Library covers all nodes within the Maya, each node can be found in the corresponding class class

Features:

       To help users to access your reception underlying method, modify the content of the scene

example:

     MFnDependencyNode

     MFnDagNode

     MFnMesh

2.MIt - Iterator classes

Overview:

        Iterator class in Maya, according to common requirements for class offered

Features:

       Access to a large number of elements one by one, for each iteration, the pointer points to different elements

example:

     MItDag

     MItMeshVertex

     MItSelectionList

3.MPx - Proxy classes

Overview:

        Maya elements proxy class for extending existing functionality Maya

Features:

       By integrating existing user class, and override fixing method, to reconstruct a new node

example:

     MPxCommand extended command

     MPxNode extension node

     MFnDeformerNode extended deformities

to sum up:

MFn method: mainly Maya available to users, providing richer functionality than the command

MIt method: the user is also called batch processing of content maya

MPx Method: user according to a fixed format drawing process, using MFn and MIt which way to enrich Maya features, such methods have to call Maya

 

Published 56 original articles · won praise 1 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_41363156/article/details/103980840