示例#1
0
    def nodeCreator(cls):

        """
        !@Brief Node creator function. Get maya API help for more informations.
        """

        return OpenMayaMPx.asMPxPtr(cls())
示例#2
0
def cmdCreator():
    # Create the command
    """
    
    Return:
        pointer to the command
    
    """
    ptr = OpenMayaMPx.asMPxPtr(SamplePyCmd())
    return ptr
示例#3
0
def nodeCreator():
    return omp.asMPxPtr(m4MultiplierNode())
示例#4
0
 def nodeCreator(cls):
     return OpenMayaMPx.asMPxPtr(cls())
示例#5
0
 def creator():
     return OpenMayaMPx.asMPxPtr( PutObjectContextCommand() )
示例#6
0
def nodeCreator():
	# TODO change this node name
	return OpenMayaMPx.asMPxPtr(nodeName)
示例#7
0
		return OpenMayaMPx.asMPxPtr( moveManipContext() )
示例#8
0
def normalizeCreator():
    return OpenMayaMPx.asMPxPtr( normalize() )
def nodeCreator():
	return OpenMayaMPx.asMPxPtr( vertSnapDeformer() )
示例#10
0
def nodeCreator():
    return OpenMayaMPx.asMPxPtr(GOE_mirror())
示例#11
0
def nodeCreator():
    return OpenMayaMPx.asMPxPtr(twistKnot())
def cmdCreator():
    return OpenMayaMPx.asMPxPtr(BlendWeightsByDistanceCmd())
示例#13
0
def node_creator():
    return OpenMayaMPx.asMPxPtr(PushDeformerNode())
示例#14
0
 def nodeCreator(cls):
     return ommpx.asMPxPtr(cls())
示例#15
0
文件: spCadNano.py 项目: vdt/cadnano2
 def creator():
     return OpenMayaMPx.asMPxPtr(closeCadNano())
示例#16
0
文件: spCadNano.py 项目: vdt/cadnano2
 def creator():
     return OpenMayaMPx.asMPxPtr(openCadNano())
示例#17
0
def cmdCreator():
	return OpenMayaMPx.asMPxPtr(blindDoubleDataCmd())
示例#18
0
def nodeCreator():
    return mpx.asMPxPtr(DisplacementToScale())
def nodeCreator():
	return OpenMayaMPx.asMPxPtr( sceneMsgCmd() )
def nodeCreator():
    return OpenMayaMPx.asMPxPtr(yakisoba())
def nodeCreator():
	return  OpenMayaMPx.asMPxPtr(jiggleNode())
示例#22
0
 def Creator(cls):
     return OpenMayaMPx.asMPxPtr(cls())
def nodeCreator():
	return OpenMayaMPx.asMPxPtr( dynNode() )
示例#24
0
 def nodeCreator():
     return OpenMayaMPx.asMPxPtr( blenderWoodTexture() )
示例#25
0
def creator():
    return OpenMayaMPx.asMPxPtr( gear_percentageToU() )
示例#26
0
def nodeCreator():
    return omMPx.asMPxPtr(rotateBlendShape())
def cmdCreator():
    return OpenMayaMPx.asMPxPtr( scriptedCommand() )
示例#28
0
 def create( ):
  return OpenMayaMPx.asMPxPtr( kgmEngine( ) )
def contextCmdCreator():
    """Wrapper function that created the command"""
    return OpenMayaMPx.asMPxPtr(mayaSelctionCtxCmd())
示例#30
0
def cmdCreator():
	return OpenMayaMPx.asMPxPtr(BasicObjectSetTest())
示例#31
0
def creator():
    return ompx.asMPxPtr(SporeSampler())
示例#32
0
 def makeObj(self):
     return OpenMayaMPx.asMPxPtr( PutObjectContext() )
示例#33
0
def nodeCreator():
	return OpenMayaMPx.asMPxPtr(BasicObjectSet())
示例#34
0
 def cmd_creator():
     return OpenMayaMPx.asMPxPtr(FitVertexCmd())
示例#35
0
	def redoIt(self):
		dependNode = OpenMaya.MObject() # Selected dependency node
		# show message and advance iterator
		def error(msg):
			sys.stderr.write(err)
			self.__iter.next()
			
		# Iterate over all selected dependency nodes
		#
		while not self.__iter.isDone():
			# Get the selected dependency node and create
			# a function set for it
			#
			try:
				self.__iter.getDependNode(dependNode)	
			except:
				error("Error getting the dependency node")
				continue

			try:
				fnDN = OpenMaya.MFnDependencyNode(dependNode)
			except:
				error("Error creating MFnDependencyNode")
				continue

			# Create a new attribute for our blind data
			#
			fnAttr = OpenMaya.MFnTypedAttribute()
			newAttr = fnAttr.create("blindDoubleData", "BDD", kPluginDataId)
			
			# Now add the new attribute to the current dependency node
			#
			fnDN.addAttribute(newAttr, OpenMaya.MFnDependencyNode.kLocalDynamicAttr)

			# Create a plug to set and retrive value off the node.
			#
			plug = OpenMaya.MPlug(dependNode, newAttr)

			# Instantiate blindDoubleData and set its value.
			#
			newData = OpenMayaMPx.asMPxPtr(blindDoubleData())
			newData.setValue(3.2)

			# Set the value for the plug.
			#
			plug.setMPxData(newData)

			# Now try to retrieve the value off the plug as an MObject.
			#
			try:
				sData = plug.asMObject()
			except:
				error("Error getting value off plug")
				continue
				
			# Convert the data back to MPxData.
			#
			pdFn = OpenMaya.MFnPluginData(sData)
			data = pdFn.constData()

			# Get the value.
			#
			if not data:
				error("Error: failed to retrieve data.")
				continue
				
			self.__iter.next()
示例#36
0
def cmdCreator():
    return OpenMayaMPx.asMPxPtr(scriptedCommand())
示例#37
0
def dataCreator():
	return OpenMayaMPx.asMPxPtr(blindDoubleData())
示例#38
0
 def nodeCreator():
     return OpenMayaMPx.asMPxPtr(gaussianTexture())
示例#39
0
 def create(cls):
     return mpx.asMPxPtr( cls() )    
示例#40
0
	def cmdCreator():
		return OpenMayaMPx.asMPxPtr( WhatIsCmd() )
示例#41
0
def nodeCreator():
	return OpenMayaMPx.asMPxPtr(stretchSplineSolver())
示例#42
0
 def nodeCreator():
     return OpenMayaMPx.asMPxPtr(blenderVoronoiTexture())
def ms_environment_nodeCreator():
    return OpenMayaMPx.asMPxPtr(ms_environment())
示例#44
0
 def createTransformationMatrix(self):
     return OpenMayaMPx.asMPxPtr(rockingTransformMatrix())
def cmdCreator():
    return OpenMayaMPx.asMPxPtr(InheritParentsName())
示例#46
0
def matrixCreator():
    return OpenMayaMPx.asMPxPtr(rockingTransformMatrix())
示例#47
0
def creator():
    return OpenMayaMPx.asMPxPtr(cvShapeInverter())
示例#48
0
def nodeCreator():
    return OpenMayaMPx.asMPxPtr(rockingTransformNode())
示例#49
0
 def create():
     return OpenMayaMPx.asMPxPtr(Ik2bCGA())
示例#50
0
def nodeCreator(self):
    return OpenMayaMPx.asMPxPtr(WheelNode())
示例#51
0
		OpenMayaMPx.MPxContextCommand.__init__(self)
示例#52
0
文件: plugins.py 项目: leonsooi/pymel
 def create(cls):
     inst = cls()
     return mpx.asMPxPtr(inst)
示例#53
0
def moveManipCreator():
	return OpenMayaMPx.asMPxPtr( moveManip() )
示例#54
0
 def _createNode():
     return OpenMayaMPx.asMPxPtr(gluePointMapping())
示例#55
0
def nodeCreator():
	return OpenMayaMPx.asMPxPtr(wheelNode())
示例#56
0
 def nodeCreator():
     return OpenMayaMPx.asMPxPtr(luxSunsky())
 def makeObj(self):
     return OpenMayaMPx.asMPxPtr(mayaSelectionContext())
def nodeCreator():
    return omp.asMPxPtr(reflectionSurfaceNode())
示例#59
0
def delaunayCreator():
    return OpenMayaMPx.asMPxPtr( delaunay() )
示例#60
0
def nodeCreator():
    return OpenMayaMPx.asMPxPtr(circle())