First, I am not sure why you don't just swap them around and do coords2-coords1, and be done with it? Why the need to scale by -1?
om.MFloatPoint(4,5,6) - om.MFloatPoint(2,3,5)
But that aside, if you really need to do it the way you have listed, the problem is that you are multiplying the wrong way around:
difference = (coords1-coords2) * -1
When you do it starting with -1 you end up accessing the multiplication operators on the int instead of the MFloatPoint. It is the MFloatPoint that knows how to be multiplied by an int value.
Justin
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 python_inside_m...@googlegroups.com.
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.