Hello, 

i am trying to find how much i need to add to a coordinate in order to get to 
another coordinate using this equation

coords1=(2,3,5)
coords2=(4,5,6)

difference = -1*(coords1-coords2)

I am trying to do this with the python api though, which is always mental. I've 
done the bit in the brackets like this

(om.MFloatPoint(2,3,5)-om.MFloatVector(4,5,6))

but i don't know how to multiply the result by negative 1. Can anyone show me 
the api way?


thanks, 
Sam

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/c5976703-c764-452b-9e06-31c0a12f7631%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to