예제 #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
파일: goe_mirror.py 프로젝트: jonntd/Public
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())
예제 #21
0
def nodeCreator():
	return  OpenMayaMPx.asMPxPtr(jiggleNode())
예제 #22
0
 def Creator(cls):
     return OpenMayaMPx.asMPxPtr(cls())
예제 #23
0
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( ) )
예제 #29
0
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())
예제 #45
0
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())
예제 #57
0
 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())