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