Thanks guys! That solves the initial problem.
At the risk of being annoying, and in the interest of learning
something, what was the problem with how I was trying it?

On Apr 13, 1:06 pm, chadrik <[email protected]> wrote:
> util.arrays.VectorN, which is designed to be roughly compatible with  
> numpy, uses length instead of mag.  we can probably add mag to  
> core.datatypes.Vector
>
>  >>> import pymel
>  >>> import pymel.core.datatypes as dt
>  >>> a = dt.Vector([1,1,1])
>  >>> a.length()
> 1.7320508075688772
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to