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.
(more…)
Posts Tagged ‘Bugs’
MSyntax.enableQuery() and MSyntax.enableEdit() Break Object Parsing
Tuesday, January 12th, 2010Problems with allNodeTypes Command
Thursday, December 31st, 2009Oftentimes, 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.
(more…)
Problems with MItSelectionList Filters
Monday, December 14th, 2009One of the most common tools in the Maya API for custom commands is the MItSelectionList class. Part of the reason why it is so valuable is because it allows for an optional filter in its constructor using the MFn::Type enum. Applying a filter allows us to effectively ignore certain types of objects in which we are not interested, and conceivably to code with some amount of impunity since we know what the objects inside the iterator will be. Conceivably…
(more…)
Setting up your PYTHONPATH environment variable globally on OSX
Friday, October 2nd, 2009Here’s another time-saver for OSX users. Don’t use environment.plist for global environment variables!
(more…)