hiolz.blogg.se

Maya python setattr translate
Maya python setattr translate










With PyMEL you get the benefits of API speed and versatility without the advanced learning curve. PyMEL node classes now include hundreds of new methods derived from the API, but with the same intuitive and unified design as before. And what's more, if anything causes the name of your object to change it will automatically be reflected in your python object. 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. Your studio can freely use, contribute to, and modify this module with no strings attached. PyMEL is released under the BSD license, which is as open as open source gets. Kudos to the PyMel team for such a well thought out project! BSD License It's also going to help our other Technical Artists with their Python learning curve, since PyMEL's syntax is consistent with most other python packages. With PyMel, I can think and write the python code and syntax I'm already used to, which speeds up my development time considerably. Having done production python code myself for many years, wrapping my head around Maya's native implementation took a little bit of time. Here's what Seth Gibson of Bungie Studios, makers of Halo, has to say: Since its release in 2008, PyMEL has accumulated an impressive resume in both feature films and games, and is now bundled with every release of Maya.

maya python setattr translate

Provide documentation accessible via html and the builtin `help() function.Add organization through class hierarchy and sub-modules.Fix bugs and design limitations in Maya's python modues, maya.cmds and l.Create an open-source python module for Maya that is intuitive to MEL users and python users alike.PyMEL builds on the maya.cmds module by organizing its commands into a class hierarchy, and by customizing them to operate in a more succinct and intuitive way. The result is a very awkward and unpythonic syntax which does not take advantage of python's strengths - particulary, a flexible, object-oriented design. Maya's command module is a direct translation of mel commands into python commands. select( ".endAngle'.PyMEL makes python scripting with Maya work the way it should.

maya python setattr translate

polyPlane( sx = divisions, sy = 1, w = 20, h = 0.5) #Create Mesh and randomly move Edges lightningmesh = cmds. cmds as cmds import random '' ' Create and deform a number of meshes and uv 's for use with a scrolling UV2 material '' ' numMeshes = 10 divisions = 20 moveRepeats = 3 #more repeats results in a more jagged mesh offsetfactor = 1 #Loop over numMeshes for mesh in xrange( 0, numMeshes):












Maya python setattr translate