I suppose I've been put on ignore for mentioning xsi (i'm sorry, i'm sorry ;) )
but if anyone is listening, I've taken a step back, and decided to work on the
simpler bits for now. avoiding the islands for now, and just focusing on what I
want from the components passed in.
Things would be much easier for me I think if my selection list remained
objects, and not strings after converting the list to verts using
pm.polyListComponentConversion(). is there a better way?
sorry for a silly question, but how could I get the objects instead or after?
so that I can get the position, and normal, etc, etc.
===========
def getComponentIslands( components ):
'''
do fancy stuff here to return component islands
'''
return componentIslands
def convertToVerts( components ):
return pm.polyListComponentConversion( components, toVertex=True )
def getAvgVertTfm( components ):
avgTfm = pm.datatypes.TransformationMatrix()
verts = convertToVerts(components)
for vert in verts:
'''
do all the fancy math stuff here
'''
pass
return avgTfm
=============
Thanks
Kev
--
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/6507d05d-8aba-4085-8637-6faf20a92f56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.