[Maya-Python] Re: Interactive selection of objects

2011-10-18 Thread Jan Lachauer
Does this help: 
http://download.autodesk.com/us/maya/2010help/Commands/scriptCtx.html
?

On 17 Okt., 17:20, André Adam a_adam_li...@gmx.de wrote:
 Hi again,

 most Maya tools rely on input selections to be made prior to executing
 a command working on the selection. Now, instead of doing that I'm
 looking for an easy way to invoke an interactive pick session from a
 function. I find bits and pieces in the API documentation, all of them
 looking pretty much over the top for this rather simple task.

 Anyone having a hint on how to tackle that? Thanks in advance, cheers!

 -André

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe


[Maya-Python] Re: can use NumPy and SciPy in maya?

2011-10-18 Thread rais
i think i must have MinGW or Cygwin?

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe


Re: [Maya-Python] Eclipse monkey not working on linux

2011-10-18 Thread Ray Faenza
I removed all but one workspace and I even re-installed monkey yet still no
success.
Perhaps a full re-install of eclipse may be a good idea.

On Mon, Oct 17, 2011 at 11:53 AM, brandon.bo...@gmail.com 
brandon.bo...@gmail.com wrote:

 Hmmm...maybe eclipse isn't looking at the workspace folder with the python
 monkey scriptsmaybe it made another one and is running off that

 -Original Message-
 From: Ray Faenza
 Sent:  10/17/2011, 11:08  AM
 To: python_inside_maya@googlegroups.com
 Subject: Re: [Maya-Python] Eclipse monkey not working on linux


 I'm using jython 2.5.2rc.jar and I have it in the eclipse/plugins folder
 with python monkey.
 The Eclipse monkey example scripts show up in the eclipse workspace
 directory that shares my own scripts directory.
 The default examples also are showing up on the scripts menu in eclipse.
  It
 is very strange behavior that also occurs in
 OSX on my macbook. At first I thought maybe it was the 'indigo' build of
 eclipse but indigo works fine on windows.

 On Sun, Oct 16, 2011 at 3:54 PM, sh...@pyrokinesis.co.nz wrote:

  Make sure you create a scripts directory in your work area, and put the
  monkey scripts in there.
 
 
   Hey Ray,
  
   I usually put Jython in the eclipse plugins folder along with python
   monkey.
   http://www.jython.org/
   Hopefully that will help the scripts menu appear.
  
   -Brandon
  
  
   On Tue, Oct 11, 2011 at 6:52 PM, rfsf rayfae...@gmail.com wrote:
  
   Hi,
  
   I was wondering if anyone here has had issues getting python monkey's
   scripts working with
   Eclipse on linux. I have the incubation as well as the download for
   python monkey installed.
   I can't get any scripts to show up under the scripts menu. I have
   eclipse working fine under
   windows 64.
  
   Systems at work seems to be having issues getting this up and running
   for me and I've haven't had much luck
   finding any posts online.
  
   Thanks
   Ray
  
   --
   view archives: http://groups.google.com/group/python_inside_maya
   change your subscription settings:
   http://groups.google.com/group/python_inside_maya/subscribe
  
  
   --
   view archives: http://groups.google.com/group/python_inside_maya
   change your subscription settings:
   http://groups.google.com/group/python_inside_maya/subscribe
  
 
 
  --
  Shaun Friedberg(Pyrokinesis)
  http://www.pyrokinesis.co.nz
  Fire Is Fun, When You Think About It
 
  --
  view archives: http://groups.google.com/group/python_inside_maya
  change your subscription settings:
  http://groups.google.com/group/python_inside_maya/subscribe
 

 --
 view archives: http://groups.google.com/group/python_inside_maya
 change your subscription settings:
 http://groups.google.com/group/python_inside_maya/subscribe

 --
 view archives: http://groups.google.com/group/python_inside_maya
 change your subscription settings:
 http://groups.google.com/group/python_inside_maya/subscribe


-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe


[Maya-Python] Re: What's faster, API(2) or native Python?

2011-10-18 Thread seb paviot
for what it's worth, I've been doing some mass parsing of scenes
lately, querying UVs and Colors on a per vertex basis.
I used the python cProfiler module to measure some differences between
pure python commands and moving the choke points to the API. In my
case it was a major gain to move to the API (roughly about half the
processing time compared to using just regular maya commands).
In your case though, if you're just talking about math conversion and
you don't need to iterate over Maya internal data, I am not sure you
would gain a lot? I could be wrong though.
As Ravi said, try to measure the difference using cProfiler if you can
implement a quick API version.

On Oct 17, 6:05 am, André Adam a_adam_li...@gmx.de wrote:
 Hi there,

 in general, are the Maya API(2) classes considered to be faster than
 calling equivalent native Python classes? Like, using the MAngle class
 for radian to degree conversion instead of Python's math.degree()? I
 am calling that per frame, so performance is a factor here.

 Thanks in advance for any insight you can share! Cheers!

   -André

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe