hohehohe2's OpenMaya tutorial     kotamuraa@yahoo.co.jp



7. Case Examples


 Q: When I delete a node with MGlobal::removeFromModel() and create the same
    type of node again, the index (such as 1 for nurbsSphereShape1) continues
    to be counted up.
     For example, When I delete curveShape1 with removeFromModel(), then create
    a curve, the name gets curveShape2, I expected curveShape1.

 A: Use MGlobal::deleteNode(). But I don't know if it's allowed.
    I've found MDagModifier::deleteNode(). It may be safer.
    Sample program "polyPrimitiveCmd" uses
MDagModifier::deleteNode() in undoIt()
    method.


 Q: A plug-in works in a machine, not another.

 A: The plug-in may be compiled with DEBUG flag. Recompile it with RELEASE flag.


Prev    Contents    Next



Maya is a registered trademark of Autodesk
Copyright
© 2003, Koichi Tamura. All Rights Reserved.












[PR]女性が輝く公文の先生募集中!:全国で教室開設説明会開催