Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(31)  |  Call(30)  |  Derive(0)  |  Import(1)

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_ExposeTransform.py   PipelineConstructionSet(Download)
            self.__exposeNodeArg = OM.MObject(self.__dgModify.createNode(AM_ExposeTransformNode.kPluginNodeId))
            self.__exposeNodeFn.setObject(self.__exposeNodeArg)
            fn = OM.MFnDagNode(self.__exposedObjectArg)
            self.__dgModify.renameNode(self.__exposeNodeArg,
                                       '%s_exposeTransform' % fn.name())  # use fn.name() instead of partialPathName(), as the latter may contain invalid characters

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_ShoulderConstraint.py   PipelineConstructionSet(Download)
                self.__dgModify.createNode(AM_ShoulderConstraintNode.kPluginNodeId))
            self.__shoulderConstraintNodeFn.setObject(self.__shoulderConstraintNodeArg)
            fn = OM.MFnDagNode(self.__constrainedObjectArg)
            self.__dgModify.renameNode(self.__shoulderConstraintNodeArg, '%s_shoulderConstraint' % fn.name())
        # assign the -name argument if provided

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_HipConstraint.py   PipelineConstructionSet(Download)
            self.__hipConstraintNodeArg = OM.MObject(self.__dgModify.createNode(AM_HipConstraintNode.kPluginNodeId))
            self.__hipConstraintNodeFn.setObject(self.__hipConstraintNodeArg)
            fn = OM.MFnDagNode(self.__constrainedObjectArg)
            self.__dgModify.renameNode(self.__hipConstraintNodeArg, '%s_hipConstraint' % fn.name())
        # assign the -name argument if provided

src/c/a/cadnano2-HEAD/controllers/mayacontrollers/helixManip.py   cadnano2(Download)
    def getTransformFromNode(self, trnsNode):
        try:
            dagFn = OpenMaya.MFnDagNode(trnsNode)
            path = OpenMaya.MDagPath()
            dagFn.getPath(path)

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/amTools/unity/models.py   PipelineConstructionSet(Download)
	    objectName = path.fullPathName()
	    path.extendToShape()
	    fn = om.MFnDagNode(path)
	    if fn.typeName() == 'mesh':
	        models.append(objectName)

src/m/r/mrv-1-1.0.3-stable/mrv/maya/nt/base.py   MRV(Download)
 
# direct import to safe api. lookup
from maya.OpenMaya import MFnDagNode, MDagPath, MObject, MObjectHandle
 
from itertools import chain
_nameToApiSelList = api.MSelectionList()
_mfndep = api.MFnDependencyNode()
_mfndag = api.MFnDagNode()
 
# cache functions
 
		op = undo.GenericOperation()
		dagfn = api.MFnDagNode(self.dagPath())
 
		# The method will not fail if the child cannot be found in child list
			pos = pythonIndex(pos, self.childCount())
 
		dagfn = api.MFnDagNode(self.dagPath())
		docmd = Call(dagfn.addChild, childNode.object(), pos, True)
		undocmd = Call(self.removeChild, childNode)
			# END if no valid parent
 
			parentDagFn = api.MFnDagNode(validParent.dagPath())
			childNodeObject = childNode.object()
 

src/d/m/dmptools-HEAD/src/maya/utils/getNodesInCameraFrustrum.py   dmptools(Download)
        selectionList.getDagPath(0, objDagPath)
 
        fnDag = OpenMaya.MFnDagNode(objDagPath)
        obj = objDagPath.node()
 

src/c/a/cadnano2-HEAD/controllers/mayacontrollers/mayaSelectionContex.py   cadnano2(Download)
    while not selectionIter.isDone():
        transformNode = OpenMaya.MObject()
        dagNode = OpenMaya.MFnDagNode()
        try:
            selectionIter.getDependNode(transformNode)
            if transformNode.isNull() or not transformNode.hasFn( \
                                    OpenMaya.MFn.kDependencyNode):
                selectionIter.next()
                continue
            dagNode = OpenMaya.MFnDagNode(transformNode)

src/g/l/glTools-HEAD/utils/deformer.py   glTools(Download)
	for i in range(outputObjectArray.length()):
		outputIndex = geoFilterFn.indexForOutputShape(outputObjectArray[i])
		outputNode = OpenMaya.MFnDagNode(outputObjectArray[i])
		# Check return shapes
		if not returnShapes: outputNode = OpenMaya.MFnDagNode(outputNode.parent(0))

src/p/b/pbrtMayaPy-HEAD/PBRT/Commands/Exporter.py   pbrtMayaPy(Download)
            if isDag:
                itDn.getPath(self.tempDagPath)
                theNode = OpenMaya.MFnDagNode(self.tempDagPath)
                nodeName = theNode.name()
                if self.isVisible(theNode):
        parentCount = fnDag.parentCount()
        if parentCount > 0 and visible:
            visible = self.isVisible( OpenMaya.MFnDagNode(fnDag.parent(0)) )
 
        return visible

  1 | 2 | 3  Next