コード例 #1
0
ファイル: QDManip.py プロジェクト: RDelet/Maya_Tools
    def nodeCreator(cls):

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

        return OpenMayaMPx.asMPxPtr(cls())
コード例 #2
0
ファイル: pyPluginCmd.py プロジェクト: jonntd/miMayaPlugins
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
ファイル: QDCos.py プロジェクト: AtonLerin/Maya_Tools
 def nodeCreator(cls):
     return OpenMayaMPx.asMPxPtr(cls())
コード例 #5
0
ファイル: SGMPlug_putObject.py プロジェクト: jonntd/mayadev-1
 def creator():
     return OpenMayaMPx.asMPxPtr( PutObjectContextCommand() )
コード例 #6
0
def nodeCreator():
	# TODO change this node name
	return OpenMayaMPx.asMPxPtr(nodeName)
コード例 #7
0
ファイル: moveManip.py プロジェクト: DimondTheCat/xray
		return OpenMayaMPx.asMPxPtr( moveManipContext() )
コード例 #8
0
ファイル: normalize.py プロジェクト: EnReich/ProKlaue
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())
コード例 #12
0
def cmdCreator():
    return OpenMayaMPx.asMPxPtr(BlendWeightsByDistanceCmd())
コード例 #13
0
ファイル: push_deformer.py プロジェクト: KasumiL5x/cageedit
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())
コード例 #19
0
def nodeCreator():
	return OpenMayaMPx.asMPxPtr( sceneMsgCmd() )
コード例 #20
0
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
ファイル: gear_percentageToU.py プロジェクト: AtonLerin/mgear
def creator():
    return OpenMayaMPx.asMPxPtr( gear_percentageToU() )
コード例 #26
0
def nodeCreator():
    return omMPx.asMPxPtr(rotateBlendShape())
コード例 #27
0
def cmdCreator():
    return OpenMayaMPx.asMPxPtr( scriptedCommand() )
コード例 #28
0
ファイル: kgmExport.py プロジェクト: nocs13/kgmEngine
 def create( ):
  return OpenMayaMPx.asMPxPtr( kgmEngine( ) )
コード例 #29
0
def contextCmdCreator():
    """Wrapper function that created the command"""
    return OpenMayaMPx.asMPxPtr(mayaSelctionCtxCmd())
コード例 #30
0
ファイル: basicObjectSet.py プロジェクト: BigRoy/Maya-devkit
def cmdCreator():
	return OpenMayaMPx.asMPxPtr(BasicObjectSetTest())
コード例 #31
0
ファイル: spore_sampler.py プロジェクト: xc278260759/spore
def creator():
    return ompx.asMPxPtr(SporeSampler())
コード例 #32
0
ファイル: SGMPlug_putObject.py プロジェクト: jonntd/mayadev-1
 def makeObj(self):
     return OpenMayaMPx.asMPxPtr( PutObjectContext() )
コード例 #33
0
ファイル: basicObjectSet.py プロジェクト: BigRoy/Maya-devkit
def nodeCreator():
	return OpenMayaMPx.asMPxPtr(BasicObjectSet())
コード例 #34
0
ファイル: fitvertex.py プロジェクト: alfsici/fitVertex
 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
ファイル: gaussianTexture.py プロジェクト: LuxRender/LuxMaya
 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
ファイル: splineSolver.py プロジェクト: skarone/PipeL
def nodeCreator():
	return OpenMayaMPx.asMPxPtr(stretchSplineSolver())
コード例 #42
0
 def nodeCreator():
     return OpenMayaMPx.asMPxPtr(blenderVoronoiTexture())
コード例 #43
0
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
ファイル: Ik2bCGA.py プロジェクト: stkstoyanov/Ik2bCGA
 def create():
     return OpenMayaMPx.asMPxPtr(Ik2bCGA())
コード例 #50
0
def nodeCreator(self):
    return OpenMayaMPx.asMPxPtr(WheelNode())
コード例 #51
0
ファイル: moveManip.py プロジェクト: DimondTheCat/xray
		OpenMayaMPx.MPxContextCommand.__init__(self)
コード例 #52
0
ファイル: plugins.py プロジェクト: leonsooi/pymel
 def create(cls):
     inst = cls()
     return mpx.asMPxPtr(inst)
コード例 #53
0
ファイル: moveManip.py プロジェクト: DimondTheCat/xray
def moveManipCreator():
	return OpenMayaMPx.asMPxPtr( moveManip() )
コード例 #54
0
ファイル: gluePointMapping.py プロジェクト: qeeji/Mayanomicon
 def _createNode():
     return OpenMayaMPx.asMPxPtr(gluePointMapping())
コード例 #55
0
ファイル: wheelNode.py プロジェクト: jonntd/Python_Deformer
def nodeCreator():
	return OpenMayaMPx.asMPxPtr(wheelNode())
コード例 #56
0
 def nodeCreator():
     return OpenMayaMPx.asMPxPtr(luxSunsky())
コード例 #57
0
 def makeObj(self):
     return OpenMayaMPx.asMPxPtr(mayaSelectionContext())
コード例 #58
0
def nodeCreator():
    return omp.asMPxPtr(reflectionSurfaceNode())
コード例 #59
0
ファイル: delaunay.py プロジェクト: EnReich/ProKlaue
def delaunayCreator():
    return OpenMayaMPx.asMPxPtr( delaunay() )
コード例 #60
0
ファイル: circleNode.py プロジェクト: wandth/subins_tutorials
def nodeCreator():
    return OpenMayaMPx.asMPxPtr(circle())