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

All Samples(69)  |  Call(68)  |  Derive(1)  |  Import(0)

src/p/m/pmHeatWeight-HEAD/packages/contents/scripts/PM_heatWeight.py   pmHeatWeight(Download)
            for jointIndex, jointValue in enumerate(jointWeights):
                apiWeights.set(jointValue, vertIndex * numJoints + jointIndex)
        apiJointIndices = api.MIntArray(numJoints, 0)
        if DEBUG:
            for jointIndex, (joint, parentIndex) in enumerate(skelList):
            print pyJointIndices
        apiComponents = api.MFnSingleIndexedComponent().create(api.MFn.kMeshVertComponent)
        apiVertices = api.MIntArray(numVertices, 0)
        for i in xrange(numVertices):
            apiVertices.set(i, i)
            except Exception:
                # There was a problem, restore the saved weights!
                influenceIndices = api.MIntArray(len(influences), 0)
                for i in xrange(len(influences)):
                    influenceIndices.set(i,i)

src/p/m/pmHeatWeight-HEAD/src/PM_heatWeight.py   pmHeatWeight(Download)
            for jointIndex, jointValue in enumerate(jointWeights):
                apiWeights.set(jointValue, vertIndex * numJoints + jointIndex)
        apiJointIndices = api.MIntArray(numJoints, 0)
        if DEBUG:
            for jointIndex, (joint, parentIndex) in enumerate(skelList):
            print pyJointIndices
        apiComponents = api.MFnSingleIndexedComponent().create(api.MFn.kMeshVertComponent)
        apiVertices = api.MIntArray(numVertices, 0)
        for i in xrange(numVertices):
            apiVertices.set(i, i)
            except Exception:
                # There was a problem, restore the saved weights!
                influenceIndices = api.MIntArray(len(influences), 0)
                for i in xrange(len(influences)):
                    influenceIndices.set(i,i)

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_Ribbon.py   PipelineConstructionSet(Download)
            numPolygons = divisions
            newMeshVertices = OM.MPointArray()
            newMeshPolyCount = OM.MIntArray()
            newMeshPolyConnects = OM.MIntArray()
            newMeshUVCounts = OM.MIntArray()
            newMeshUVIDs = OM.MIntArray()

src/g/l/glTools-HEAD/utils/component.py   glTools(Download)
	compObj = OpenMaya.MObject()
	objPath = OpenMaya.MDagPath()
	indexList = OpenMaya.MIntArray()
	selectionList = OpenMaya.MSelectionList()
	# Get component as selection
		# MESH / NURBS CURVE
		if (selPath.apiType() == OpenMaya.MFn.kMesh) or (selPath.apiType() == OpenMaya.MFn.kNurbsCurve):
			indexList = OpenMaya.MIntArray()
			componentFn = OpenMaya.MFnSingleIndexedComponent(componentObj)
			componentFn.getElements(indexList)
			componentIndexList[selPath.partialPathName()] = list(indexList)
		# NURBS SURFACE
		if selPath.apiType() == OpenMaya.MFn.kNurbsSurface:
			indexListU = OpenMaya.MIntArray()
			indexListV = OpenMaya.MIntArray()
		# LATTICE
		if selPath.apiType() == OpenMaya.MFn.kLattice:
			indexListS = OpenMaya.MIntArray()
			indexListT = OpenMaya.MIntArray()
			indexListU = OpenMaya.MIntArray()

src/g/l/glTools-HEAD/common/componentUtilities.py   glTools(Download)
			# MESH / NURBS CURVE
			if (selPath.apiType() == OpenMaya.MFn.kMesh) or (selPath.apiType() == OpenMaya.MFn.kNurbsCurve):
				indexList = OpenMaya.MIntArray()
				componentFn = OpenMaya.MFnSingleIndexedComponent(componentObj)
				componentFn.getElements(indexList)
			# NURBS SURFACE
			if selPath.apiType() == OpenMaya.MFn.kNurbsSurface: # Mesh
				indexListU = OpenMaya.MIntArray()
				indexListV = OpenMaya.MIntArray()
				componentFn = OpenMaya.MFnDoubleIndexedComponent(componentObj)
			# LATTICE
			if selPath.apiType() == OpenMaya.MFn.kLattice: # Mesh
				indexListS = OpenMaya.MIntArray()
				indexListT = OpenMaya.MIntArray()
				indexListU = OpenMaya.MIntArray()

src/m/r/mrv-1-1.0.3-stable/mrv/maya/nt/apipatch.py   MRV(Download)
			compared to a simple numPlugs + 1 algorithm
		:note: only makes sense for array plugs"""
		indices = api.MIntArray()
		self.getExistingArrayAttributeIndices( indices )
 
class MIntArray( api.MIntArray, ArrayBase ):
	"""Attach additional creator functions"""
	_apicls = api.MIntArray
 
	@classmethod
			raise ValueError("negative ranges are not supported")
 
		ia = api.MIntArray()
		l = j - i
		ia.setLength(l)

src/g/l/glTools-HEAD/tools/writeBurlyWeights.py   glTools(Download)
 
	# Get affect point indices
	infComponentIndex = OpenMaya.MIntArray()
	infComponentIndexFn = OpenMaya.MFnSingleIndexedComponent(infComponentList)
	infComponentIndexFn.getElements(infComponentIndex)

src/m/r/mrv-1-1.0.3-stable/mrv/maya/nt/it.py   MRV(Download)
			# annoying argument conversion for Maya API non standard C types
			scriptUtil = api.MScriptUtil()
			typeIntM = api.MIntArray()
			scriptUtil.createIntArrayFromList( args,  typeIntM )
			typeFilter.setFilterList( typeIntM )

src/m/r/mrv-1-1.0.3-stable/mrv/maya/nt/base.py   MRV(Download)
	def getElements(self):
		""":return: MIntArray containing the indices this component represents"""
		u = api.MIntArray()
		api.MFnSingleIndexedComponent(self).getElements(u)
		return u
	def getElements(self):
		"""
		:return: (uIntArray, vIntArray) tuple containing arrays with the u and v
			indices this component represents"""
		u = api.MIntArray()
		v = api.MIntArray()
	def getElements(self):
		"""
		:return: (uIntArray, vIntArray, wIntArray) tuple containing arrays with 
			the u, v and w indices this component represents"""
		u = api.MIntArray()
		v = api.MIntArray()

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/amTools/unity/blendShapes.py   PipelineConstructionSet(Download)
	# encode each point index in the red and green channels of each point's color value
	meshFn = om.MFnMesh(meshDagPath)
	vertexCount = om.MIntArray()
	vertexList = om.MIntArray()
	meshFn.getVertices(vertexCount, vertexList)

  1 | 2 | 3  Next