How To get the NurbsPlane's "patchesV" & "patchesU" data

29 views
Skip to first unread message

Anas Elkinawy

unread,
Sep 23, 2021, 12:56:57 PM9/23/21
to Python Programming for Autodesk Maya
How To get the NurbsPlane's "patchesV" & "patchesU" data for deleted history nurbsplane 

Andrew Golubev

unread,
Sep 24, 2021, 3:40:39 AM9/24/21
to python_in...@googlegroups.com
You can try to get them with OpenMaya:

import maya.OpenMaya as OpenMaya

#nurbs surface sphere name
node_name = "nurbsPlaneShape1"

#get shape m_obj
selList = OpenMaya.MSelectionList()
selList.add(node_name)
mobj = OpenMaya.MObject()
selList.getDependNode(0, mobj)

#create mfnnurbssurface and retrieve data from it
mfnNurbsSurface_from_dag = OpenMaya.MFnNurbsSurface(mobj)
patches_u = mfnNurbsSurface_from_dag.numPatchesInU()
patches_v = mfnNurbsSurface_from_dag.numPatchesInV()

чт, 23 сент. 2021 г. в 19:57, Anas Elkinawy <anasel...@gmail.com>:
How To get the NurbsPlane's "patchesV" & "patchesU" data for deleted history nurbsplane 

--
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/c074570e-7667-4bb1-93d7-5645558cd61en%40googlegroups.com.


--
-----------------------
Best regards,
Andrew Golubev

Anas Elkinawy

unread,
Sep 24, 2021, 1:34:32 PM9/24/21
to Python Programming for Autodesk Maya
Thank you ! so much 
I'll try this
Reply all
Reply to author
Forward
0 new messages