Example #1
0
    def nodeCreator(cls):

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

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