MSyntax.enableQuery() and MSyntax.enableEdit() Break Object Parsing

In Maya, many built-in commands support any of three modes: create, edit, and query. Although it may not be immediately obvious, each of these modes has some particularities that set them apart, and which consequently require some extra effort on the part of the programmer to support. Maya does have some built-in support, which is presently only partially functional, so it is helpful to understand what it actually gains you to use it and work around its issues.
Continue reading MSyntax.enableQuery() and MSyntax.enableEdit() Break Object Parsing

Problems with allNodeTypes Command

Oftentimes, when loading your own custom tool set, you may want to confirm the existence of a plug-in on the client machine in order to prevent weird errors. Specifically, if you create a tool that works with a custom node, you may want to verify the node’s existence using the allNodeTypes command. Unfortunately, this command has a really quirky problem when used in Python.
Continue reading Problems with allNodeTypes Command