--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/52e9da24-18fe-43c5-8498-78cd872dd421%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/ae10f7dd-bbdc-4032-a4d9-58dc3b7e53f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
import maya.OpenMaya as om
sel = om.MSelectionList()
om.MGlobal.getActiveSelectionList(sel)
d = om.MDagPath()
o = om.MObject()
selIt = om.MItSelectionList(sel)
fn = om.MFnSingleIndexedComponent()
uvs = om.MIntArray()
while not selIt.isDone():
selIt.getDagPath(d, o)
fn.setObject(o)
fn.getElements(uvs)
print list(uvs)
geomIt = om.MitGeometry(d, o)
while not geomIt.isDone():
p = geomIt.position(om.MSpace.kWorld)
print geomIt.index(), (p[0], p[1], p[2], p[3])
geomIt.next()
selIt.next()
--
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_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/33254070-9258-4d4b-baa0-95b6f28eae9a%40googlegroups.com.
--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/47a6fbe5-e107-43db-aceb-985e2dcc8e88%40googlegroups.com.
Let me elaborate. I shift+Rclick on the nurbsSurface and drag down to select "Surface Point". I shift click on the surface a few times and run my code.
--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5948fd77-e098-41ad-b0f1-774318e6c24f%40googlegroups.com.