parameters: (self)
return_statement: return isValid
docstring: Validate the UVs for the splitUV operation. UVs are valid only if they are shared
  		by more than one face. While the splitUVNode is smart enough to not process the
  		split if a UV is not splittable, a splitUV node is still created by the polyModifierCmd.
  		So call this method to validate the UVs before calling _doModifyPoly().
  
  		validateUVs() will return true so long as there is at least one valid UV. It will
  		also prune out any invalid UVs from both the component list and UVId array.
docstring_summary: Validate the UVs for the splitUV operation. UVs are valid only if they are shared
  		by more than one face. While the splitUVNode is smart enough to not process the
  		split if a UV is not splittable, a splitUV node is still created by the polyModifierCmd.
  		So call this method to validate the UVs before calling _doModifyPoly().
docstring_tokens: Validate the UVs for the splitUV operation . UVs are valid only if they are shared by more than one face . While the splitUVNode is smart enough to not process the split if a UV is not splittable a splitUV node is still created by the polyModifierCmd . So call this method to validate the UVs before calling _doModifyPoly () .
function: def __validateUVs(self):
  		"""
  		Validate the UVs for the splitUV operation. UVs are valid only if they are shared
  		by more than one face. While the splitUVNode is smart enough to not process the
  		split if a UV is not splittable, a splitUV node is still created by the polyModifierCmd.
  		So call this method to validate the UVs before calling _doModifyPoly().
  
  		validateUVs() will return true so long as there is at least one valid UV. It will
  		also prune out any invalid UVs from both the component list and UVId array.
  		"""
  		# Get the mesh that we are operating on
  		#
  		dagPath = self._getMeshNode()
  		mesh = dagPath.node()
  
  		# Get the number of faces sharing the selected UVs
  		#
  		meshFn = OpenMaya.MFnMesh(mesh)
  		polyIter = OpenMaya.MItMeshPolygon(mesh)
  		selUVFaceCountArray = OpenMaya.MIntArray()
  
  		indexParam = OpenMaya.MScriptUtil()
  		indexParam.createFromInt(0)
  		indexPtr = indexParam.asIntPtr()
  
  		count = 0
  		selUVsCount = self.__fSelUVs.length()
  		for i in range(selUVsCount):
  			while not polyIter.isDone():
  				if polyIter.hasUVs():
  					polyVertCount = polyIter.polygonVertexCount()
  
  					for j in range(polyVertCount):
  						polyIter.getUVIndex(j, indexPtr)
  						UVIndex = OpenMaya.MScriptUtil(indexPtr).asInt()
  
  						if UVIndex == self.__fSelUVs[i]:
  							count += 1
  							break
  				polyIter.next()
  			selUVFaceCountArray.append(count)
  
  		# Now, check to make sure that at least one UV is being shared by more than one
  		# face. So long as we have one UV that we can operate on, we should proceed and let
  		# the splitUVNode ignore the UVs which are only shared by one face.
  		#
  		isValid = False
  		validUVIndices = OpenMaya.MIntArray()
  
  		for i in range(selUVsCount):
  			if selUVFaceCountArray[i] > 1:
  				isValid = True
  				validUVIndices.append(i)
  
  		if isValid:
  			self.__pruneUVs(validUVIndices)
  
  		return isValid
function_tokens: def __validateUVs ( self ) : # Get the mesh that we are operating on # dagPath = self . _getMeshNode ( ) mesh = dagPath . node ( ) # Get the number of faces sharing the selected UVs # meshFn = OpenMaya . MFnMesh ( mesh ) polyIter = OpenMaya . MItMeshPolygon ( mesh ) selUVFaceCountArray = OpenMaya . MIntArray ( ) indexParam = OpenMaya . MScriptUtil ( ) indexParam . createFromInt ( 0 ) indexPtr = indexParam . asIntPtr ( ) count = 0 selUVsCount = self . __fSelUVs . length ( ) for i in range ( selUVsCount ) : while not polyIter . isDone ( ) : if polyIter . hasUVs ( ) : polyVertCount = polyIter . polygonVertexCount ( ) for j in range ( polyVertCount ) : polyIter . getUVIndex ( j , indexPtr ) UVIndex = OpenMaya . MScriptUtil ( indexPtr ) . asInt ( ) if UVIndex == self . __fSelUVs [ i ] : count += 1 break polyIter . next ( ) selUVFaceCountArray . append ( count ) # Now, check to make sure that at least one UV is being shared by more than one # face. So long as we have one UV that we can operate on, we should proceed and let # the splitUVNode ignore the UVs which are only shared by one face. # isValid = False validUVIndices = OpenMaya . MIntArray ( ) for i in range ( selUVsCount ) : if selUVFaceCountArray [ i ] > 1 : isValid = True validUVIndices . append ( i ) if isValid : self . __pruneUVs ( validUVIndices ) return isValid