s...@weacceptyou.com
unread,Dec 9, 2016, 9:47:01 AM12/9/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python Programming for Autodesk Maya
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):
diff=(v1[0]-v2[0]),(v1[1]-v2[1]),(v1[2]-v2[2])
diff_list.append(diff)
return diff_list
what i want to know is if this can be done easily with the maya python API. I later want to use setPoints to set the verts of a new piece of mesh with this list. so for that reason i think they need to be OpenMaya.MFloatPoint values or something.
sorry im so confused by how the API does things. If someone could show me how to set it up i would really appreciate it.
thanks,
Sam