sacber.blogg.se

Maya python ls type
Maya python ls type








  1. #Maya python ls type software
  2. #Maya python ls type free

However, the last joint in the chain isn’t auto-oriented: A joint’s auto-orientation is based on the vector between it, and its child. SetAttr ($x + ".I have this pet peeve: Whenever I create joint hierarchies in Maya, it will automatically setup the joint orientation value for you (based on option set in the ‘Joint Tool’ tool settings). String $history = `listHistory $shape` Įval ( "setAttr -type stringArray " + $x + ".newAt " + `size $history` + $elements) įloat $trans = `getAttr ($x + ".translate")` įloat $scale = `getAttr ($x + ".scale")` add and set a string array attribute with the history of this transform's shapeĪddAttr -ln newAt -dataType stringArray $x String $conn = `listConnections -s 0 -d 1 -p 1 ($x + ".sx")` MEL string $objs = `ls -type transform` ĭisconnectAttr( $x + ".sx") ($x + ".sy") ( 'stringArrayRemoveDuplicates( )' % (cmds.nodeType(x), trans, trans, trans) ) This release builds on PyMEL's already vastly improved method, which allows you to call a mel procedure as if it was a python function: values = With PyMEL you get the benefits of API speed and versatility without the advanced learning curve.Ĭalling MEL from python is still an unfortunate necessity, so PyMEL makes it as easy as possible. 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 ls type 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 ls type 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:










Maya python ls type