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 <[email protected]> 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

Reply via email to