Re: [Maya-Python] Re: PyMEL included with Maya 2011

2010-03-10 Thread yury nedelin
wow congrats, this is very cool. yury On Wed, Mar 10, 2010 at 11:10 PM, Chad Dombrova wrote: > > > Does that mean in future you just have to do a plain: > > from pymel.all import * > > and it will be there without actually installing anything ? > > Or will it be loaded by default ? > > just l

Re: [Maya-Python] Re: PyMEL included with Maya 2011

2010-03-10 Thread Chad Dombrova
> Does that mean in future you just have to do a plain: > from pymel.all import * > and it will be there without actually installing anything ? > Or will it be loaded by default ? just like maya.cmds, you'll have to import it to use it, but it will be installed by default in maya's site-packages

Re: [Maya-Python] Re: PyMEL included with Maya 2011

2010-03-10 Thread Chad Dombrova
> is that a fact? > yury having trouble believing the news? it's for real. do you really think i'd make all this up? :) -chad -- http://groups.google.com/group/python_inside_maya

Re: [Maya-Python] Re: PyMEL included with Maya 2011

2010-03-10 Thread yury nedelin
is that a fact? yury On Wed, Mar 10, 2010 at 9:19 PM, Drake wrote: > Congratulations on such a great news!! > > - Drake > > -- > http://groups.google.com/group/python_inside_maya > -- http://groups.google.com/group/python_inside_maya

Re: [Maya-Python] How to have 2 or more different version of pymel co-existing ?

2010-03-10 Thread Chad Dombrova
do you mean to have both versions available simultaneously? if so, the scripts would have to alter sys.path before importing pymel to ensure they get the desired version, since python always uses the first found on the script path. i would not recommend going this route. the effort of upgradi

[Maya-Python] How to have 2 or more different version of pymel co-existing ?

2010-03-10 Thread Drake
Let's say, we have wrote some scripts w/ pymel 0.7.x and it works well w/o any trouble. Later on, we noticed the upgrade of pymel 0.9.x w/ lots of great design and wrote other scripts with it. Would it possible for those 2 set of scripts w/ different pymel both work well under one maya? - Drake -

[Maya-Python] Re: PyMEL included with Maya 2011

2010-03-10 Thread Drake
Congratulations on such a great news!! - Drake -- http://groups.google.com/group/python_inside_maya

Re: [Maya-Python] Re: returning a value to a script from a command plugin

2010-03-10 Thread Chad Vernon
When you call the command from script, it will return whatever you put in the setResult or appendToResult command. It doesn't return the MStatus returned in the doIt() method. On Wed, Mar 10, 2010 at 5:34 PM, ranxerox wrote: > > thanks a lot Chad, I had tried that initially and had received s

[Maya-Python] Re: returning a value to a script from a command plugin

2010-03-10 Thread ranxerox
thanks a lot Chad, I had tried that initially and had received some error message which led me to believe that I had been exploring an incorrect route. So .. if the command returns an MStatus object how do you actually get the result of the command from the calling script ? thanks -Greg O

Re: [Maya-Python] returning a value to a script from a command plugin

2010-03-10 Thread Chad Vernon
And for a bunch of doubles, you'll need to return either an MDoubleArray with setResult or call appendToResult several times with each value. On Wed, Mar 10, 2010 at 4:52 PM, Chad Vernon wrote: > In MPxCommand, doIt() is supposed to return an MStatus. In order to get > the actual command to ret

Re: [Maya-Python] returning a value to a script from a command plugin

2010-03-10 Thread Chad Vernon
In MPxCommand, doIt() is supposed to return an MStatus. In order to get the actual command to return something, use the setResult() or appendToResult() methods. On Wed, Mar 10, 2010 at 3:44 PM, ranxerox wrote: > > hey all, I've been writing a command plugin which does come > calculations base

[Maya-Python] returning a value to a script from a command plugin

2010-03-10 Thread ranxerox
hey all, I've been writing a command plugin which does come calculations based on it's input and returns a vector back to the script which was calling it. It's been a while since I've written a plugin and I've never written one in python so please excuse the simplicity of the question but I hav

Re: [Maya-Python] Re: PyMEL included with Maya 2011

2010-03-10 Thread Judah Baron
Yeah, that's great news. Congratulations. I guess I can climb down from the fence as well. -Judah On Wed, Mar 10, 2010 at 11:53 AM, Winning Guy wrote: > Awesome news! > > Congratulations for all the hard work. I'm looking forward to using > it. > > On Mar 9, 2:14 pm, Chad Dombrova wrote: > >

[Maya-Python] Re: PyMEL included with Maya 2011

2010-03-10 Thread Winning Guy
Awesome news! Congratulations for all the hard work. I'm looking forward to using it. On Mar 9, 2:14 pm, Chad Dombrova wrote: > By now you may have seen the announcements for Maya 2011.  It's my pleasure > to tell you that the rumors are true: PyMEL will be shipped with Maya, right > alongside

[Maya-Python] Re: PyMEL included with Maya 2011

2010-03-10 Thread Sveinbjörn J . Tryggvason
Congratulations! I've been one of those fence-sitters and I can't wait to get down from there. -sjt Great job On Mar 9, 10:14 pm, Chad Dombrova wrote: > By now you may have seen the announcements for Maya 2011.  It's my pleasure > to tell you that the rumors are true: PyMEL will be shipped wit

[Maya-Python] Writing a plugin that generates curves

2010-03-10 Thread czemiello
Hello ! I am quite new to python Maya API. Iknow how to write plugins that gather info from existing objects, I need to write a node that generates curves from given matrices of MPoints() and MVectors(), when no objects are in scene. Could you help me? Here is some pseudocode: m = 2 is a paramete

Re: [Maya-Python] Re: PyMEL included with Maya 2011

2010-03-10 Thread cesar cardenas
congratulations... 2010/3/10 Sylvain Berger > Yes congratulation! It is so nice to see such an ambitious project being > embraced by Autodesk and incorparated in the product. > Also kudos to Autodesk for leaving it open source. > > It's a shame that I need to work less and less with Maya these d

Re: [Maya-Python] Re: PyMEL included with Maya 2011

2010-03-10 Thread Sylvain Berger
Yes congratulation! It is so nice to see such an ambitious project being embraced by Autodesk and incorparated in the product. Also kudos to Autodesk for leaving it open source. It's a shame that I need to work less and less with Maya these days :( The studio is using Softimage and switching to H

[Maya-Python] Re: PyMEL included with Maya 2011

2010-03-10 Thread Byron
Does that mean in future you just have to do a plain: from pymel.all import * and it will be there without actually installing anything ? Or will it be loaded by default ? Thanks, Sebastian On Mar 9, 11:14 pm, Chad Dombrova wrote: > By now you may have seen the announcements for Maya 2011.  It's

Re: [Maya-Python] PyMEL included with Maya 2011

2010-03-10 Thread Sajeev Kandasamy
Yes very happy to hear this..Well done guys Sajeev On Wed, Mar 10, 2010 at 4:07 AM, Jason Porath wrote: > Congrats, Chad. Richly deserved. > > -J > > > On Tue, Mar 9, 2010 at 2:14 PM, Chad Dombrova wrote: > > By now you may have seen the announcements for Maya 2011. It's my > pleasure > >