Re: [Maya-Python] subtracting coordinate values from seperate lists python API

2016-12-14 Thread sam
Thanks Justin, I did read this page. But i still find it hard to make sense of how things are worded sometimes. Ill try and learn from this example thanks, Sam -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To

Re: [Maya-Python] subtracting coordinate values from seperate lists python API

2016-12-09 Thread Justin Israel
Have you read up on the MFloatPoint in the docs? It shouldn't be too confusing to use. http://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__cpp_ref_class_m_float_point_html Assuming your verts are normal tuples and you want to convert them to MFloatPoint, import maya.OpenMaya as om def

[Maya-Python] subtracting coordinate values from seperate lists python API

2016-12-09 Thread sam
hello i have some python code that subtracts corresponding coordinates from two separate lists and then appends the result to a new list: def findDiff(scan1_verts, scan2_verts): diff_list=[] for (v1,v2) in zip(scan2_verts,scan1_verts):