Re: Maya Match Transforms

Date : Tue, 25 Dec 2007 18:55:27 +0100
To : XSI(at)Softimage.COM
From : Julien Stiegler <julien.stiegler(at)free.fr>
Subject : Re: Maya Match Transforms
This look horrible !

and even mel is really the old, inefficient way of doing things : call commands
Hopefuly object have properties and the plugin API make it efficient like in xsi. But that's only in c++...


Michal Doniec wrote:

Sorry for being way off topic.
it looks like that

objs = cmds.ls( type= 'transform')
cmds.setAttr( *args ,  **{ 'type' : 'stringArray' } )
print cmds.getAttr ( x + ".newAt" )

Basically you use cmds. module all the time to invoke mel commands, personally I am not smart enough to find out how to use it in more object oriented way and code in python for most cases is no different than mel code, maybe more experienced users find it more usable.

My colleague at work uses library called pymel (by luma pictures), it makes things a little bit more organized (more object oriented), never used it personally tho.




Bernard Lebel wrote:

I think the fact that Python is a wrapper around MEL is important as
far as performance and features go. If all (or almost) MEL features
are supported in Python and they perform at same rate, then the simple
fact that it's a wrapper does not justify not using it. There ARE
things in Python that surely do not exist in MEL.




On Dec 25, 2007 10:22 AM, Michal Doniec <doniecm(at)gmail.com> wrote:


I do not recommend maya python.
It's just a wrapper for mel commands.

And no, there is no match transform without scripting.

Eric Thivierge wrote:


Thanks for the responses. Yes I should pick up a MEL book (and
probably will in the next week or so) but I was just wondering if it
was just in the software somewhere I couldn't find. I appreciate the
help a lot.

Thanks for the code samples as well. Are they Jscript? If so doesn't
maya only run MEL and Python?



---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi




--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.