Hi,
I'm begining with python in maya, and I can't find the equivalent math functions as in MEL, like :
dot, cross...
I saw I can do all this with this kind lines :
import maya.mel as mm
res = mm.eval ("cross <> <>;")
print r
but it's a bit tedious if I want to compute things with variables from python. I mean I'll have to concatenate to build a string as a mel declaration of a vector like :
v1 = (1.0,2.0,3.0)
v2 = (3.0,2.0,1.0)
res = mm.eval ("cross <> <>;")
...
Or there is an easier way to do this kind of stuff, like "import the good Python library"
Regards,
Philippe.