Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/g/l/glTools-HEAD/utils/component.py   glTools(Download)
			# Surface
			elif selPath.apiType() == OpenMaya.MFn.kNurbsSurface:
				surfaceFn = OpenMaya.MFnNurbsSurface(selPath.node())
				componentSelList.add(objName+'.cv[0:'+str(surfaceFn.numCVsInU()-1)+'][0:'+str(surfaceFn.numCVsInV()-1)+']')
			# Lattice
			OpenMaya.MGlobal.getSelectionListByName(shape,surfList)
			surfList.getDependNode(0,surfObj)
			surfFn = OpenMaya.MFnNurbsSurface(surfObj)
			# CV count in V direction
			numV = surfFn.numCVsInV()
		OpenMaya.MGlobal.getSelectionListByName(obj,surfList)
		surfList.getDependNode(0,surfObj)
		surfFn = OpenMaya.MFnNurbsSurface(surfObj)
		# CV count in U an V directions
		numV = surfFn.numCVsInV()

src/g/l/glTools-HEAD/common/componentUtilities.py   glTools(Download)
				# Surface
				elif selPath.apiType() == OpenMaya.MFn.kNurbsSurface:
					surfaceFn = OpenMaya.MFnNurbsSurface(selPath.node())
					uCvCount = surfaceFn.numCVsInU()
					vCvCount = surfaceFn.numCVsInV()
				OpenMaya.MGlobal.getSelectionListByName(shape,surfList)
				surfList.getDependNode(0,surfObj)
				surfFn = OpenMaya.MFnNurbsSurface(surfObj)
				# CV count in V direction
				numV = surfFn.numCVsInV()
			OpenMaya.MGlobal.getSelectionListByName(obj,surfList)
			surfList.getDependNode(0,surfObj)
			surfFn = OpenMaya.MFnNurbsSurface(surfObj)
			# CV count in U an V directions
			numV = surfFn.numCVsInV()

src/g/l/glTools-HEAD/utils/base.py   glTools(Download)
		curveFn.getCVs(pointList,mSpace)
	if shapeType == 'nurbsSurface':
		surfaceFn = OpenMaya.MFnNurbsSurface(shapeObj)
		surfaceFn.getCVs(pointList,mSpace)
 

src/g/l/glTools-HEAD/utils/surface.py   glTools(Download)
	surfacePath = OpenMaya.MDagPath()
	selection.getDagPath(0,surfacePath)
	surfaceFn = OpenMaya.MFnNurbsSurface()
	surfaceFn.setObject(surfacePath)