Esempio n. 1
0
    def nodeCreator(cls):

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

        return OpenMayaMPx.asMPxPtr(cls())
Esempio n. 2
0
def cmdCreator():
    # Create the command
    """
    
    Return:
        pointer to the command
    
    """
    ptr = OpenMayaMPx.asMPxPtr(SamplePyCmd())
    return ptr
Esempio n. 3
0
def nodeCreator():
    return omp.asMPxPtr(m4MultiplierNode())
Esempio n. 4
0
 def nodeCreator(cls):
     return OpenMayaMPx.asMPxPtr(cls())
Esempio n. 5
0
 def creator():
     return OpenMayaMPx.asMPxPtr( PutObjectContextCommand() )
Esempio n. 6
0
def nodeCreator():
	# TODO change this node name
	return OpenMayaMPx.asMPxPtr(nodeName)
Esempio n. 7
0
		return OpenMayaMPx.asMPxPtr( moveManipContext() )
Esempio n. 8
0
def normalizeCreator():
    return OpenMayaMPx.asMPxPtr( normalize() )
def nodeCreator():
	return OpenMayaMPx.asMPxPtr( vertSnapDeformer() )
Esempio n. 10
0
def nodeCreator():
    return OpenMayaMPx.asMPxPtr(GOE_mirror())
Esempio n. 11
0
def nodeCreator():
    return OpenMayaMPx.asMPxPtr(twistKnot())
def cmdCreator():
    return OpenMayaMPx.asMPxPtr(BlendWeightsByDistanceCmd())
Esempio n. 13
0
def node_creator():
    return OpenMayaMPx.asMPxPtr(PushDeformerNode())
Esempio n. 14
0
 def nodeCreator(cls):
     return ommpx.asMPxPtr(cls())
Esempio n. 15
0
 def creator():
     return OpenMayaMPx.asMPxPtr(closeCadNano())
Esempio n. 16
0
 def creator():
     return OpenMayaMPx.asMPxPtr(openCadNano())
Esempio n. 17
0
def cmdCreator():
	return OpenMayaMPx.asMPxPtr(blindDoubleDataCmd())
Esempio n. 18
0
def nodeCreator():
    return mpx.asMPxPtr(DisplacementToScale())
def nodeCreator():
	return OpenMayaMPx.asMPxPtr( sceneMsgCmd() )
def nodeCreator():
    return OpenMayaMPx.asMPxPtr(yakisoba())
Esempio n. 21
0
def nodeCreator():
	return  OpenMayaMPx.asMPxPtr(jiggleNode())
Esempio n. 22
0
 def Creator(cls):
     return OpenMayaMPx.asMPxPtr(cls())
def nodeCreator():
	return OpenMayaMPx.asMPxPtr( dynNode() )
Esempio n. 24
0
 def nodeCreator():
     return OpenMayaMPx.asMPxPtr( blenderWoodTexture() )
Esempio n. 25
0
def creator():
    return OpenMayaMPx.asMPxPtr( gear_percentageToU() )
Esempio n. 26
0
def nodeCreator():
    return omMPx.asMPxPtr(rotateBlendShape())
def cmdCreator():
    return OpenMayaMPx.asMPxPtr( scriptedCommand() )
Esempio n. 28
0
 def create( ):
  return OpenMayaMPx.asMPxPtr( kgmEngine( ) )
def contextCmdCreator():
    """Wrapper function that created the command"""
    return OpenMayaMPx.asMPxPtr(mayaSelctionCtxCmd())
Esempio n. 30
0
def cmdCreator():
	return OpenMayaMPx.asMPxPtr(BasicObjectSetTest())
Esempio n. 31
0
def creator():
    return ompx.asMPxPtr(SporeSampler())
Esempio n. 32
0
 def makeObj(self):
     return OpenMayaMPx.asMPxPtr( PutObjectContext() )
Esempio n. 33
0
def nodeCreator():
	return OpenMayaMPx.asMPxPtr(BasicObjectSet())
Esempio n. 34
0
 def cmd_creator():
     return OpenMayaMPx.asMPxPtr(FitVertexCmd())
Esempio n. 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()
Esempio n. 36
0
def cmdCreator():
    return OpenMayaMPx.asMPxPtr(scriptedCommand())
Esempio n. 37
0
def dataCreator():
	return OpenMayaMPx.asMPxPtr(blindDoubleData())
Esempio n. 38
0
 def nodeCreator():
     return OpenMayaMPx.asMPxPtr(gaussianTexture())
Esempio n. 39
0
 def create(cls):
     return mpx.asMPxPtr( cls() )    
Esempio n. 40
0
	def cmdCreator():
		return OpenMayaMPx.asMPxPtr( WhatIsCmd() )
Esempio n. 41
0
def nodeCreator():
	return OpenMayaMPx.asMPxPtr(stretchSplineSolver())
Esempio n. 42
0
 def nodeCreator():
     return OpenMayaMPx.asMPxPtr(blenderVoronoiTexture())
def ms_environment_nodeCreator():
    return OpenMayaMPx.asMPxPtr(ms_environment())
Esempio n. 44
0
 def createTransformationMatrix(self):
     return OpenMayaMPx.asMPxPtr(rockingTransformMatrix())
Esempio n. 45
0
def cmdCreator():
    return OpenMayaMPx.asMPxPtr(InheritParentsName())
Esempio n. 46
0
def matrixCreator():
    return OpenMayaMPx.asMPxPtr(rockingTransformMatrix())
Esempio n. 47
0
def creator():
    return OpenMayaMPx.asMPxPtr(cvShapeInverter())
Esempio n. 48
0
def nodeCreator():
    return OpenMayaMPx.asMPxPtr(rockingTransformNode())
Esempio n. 49
0
 def create():
     return OpenMayaMPx.asMPxPtr(Ik2bCGA())
Esempio n. 50
0
def nodeCreator(self):
    return OpenMayaMPx.asMPxPtr(WheelNode())
Esempio n. 51
0
		OpenMayaMPx.MPxContextCommand.__init__(self)
Esempio n. 52
0
 def create(cls):
     inst = cls()
     return mpx.asMPxPtr(inst)
Esempio n. 53
0
def moveManipCreator():
	return OpenMayaMPx.asMPxPtr( moveManip() )
Esempio n. 54
0
 def _createNode():
     return OpenMayaMPx.asMPxPtr(gluePointMapping())
Esempio n. 55
0
def nodeCreator():
	return OpenMayaMPx.asMPxPtr(wheelNode())
Esempio n. 56
0
 def nodeCreator():
     return OpenMayaMPx.asMPxPtr(luxSunsky())
 def makeObj(self):
     return OpenMayaMPx.asMPxPtr(mayaSelectionContext())
def nodeCreator():
    return omp.asMPxPtr(reflectionSurfaceNode())
Esempio n. 59
0
def delaunayCreator():
    return OpenMayaMPx.asMPxPtr( delaunay() )
Esempio n. 60
0
def nodeCreator():
    return OpenMayaMPx.asMPxPtr(circle())