PyMEL node classes now include hundreds of new methods derived from the API, but with the same intuitive and unified design as before. It doesn't matter what name you use to access an attribute: > cam.t = cam.translate > cam, shape = camera()Ĭomparing attributes is just as easy. Keep in mind that the changes could have just as easily been performed by the user interacting with objects through the GUI. And what's more, if anything causes the name of your object to change it will automatically be reflected in your python object.īelow, we make a camera, rename it, and then group and instance it, to demonstrate how the name changes are constantly reflected. This means that the annoying inconsistencies of string comparisons are over: no more worrying about short names versus long names, DAG paths, unique paths, instance paths. PyMEL harnesses the API to create a name-independent representation of your object. The node and attribute classes have been rewritten from the ground up to use the python API as their foundation, increasing the speed and fidelity of PyMEL's object-oriented design. PyMEL 0.9 is a dramatic leap forward in the evolution of python in Maya.
#MAYA PYTHON SETATTR .DISPLAYLOCALAXIS SOFTWARE#
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#MAYA PYTHON SETATTR .DISPLAYLOCALAXIS FREE#
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: