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

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_Ribbon.py   PipelineConstructionSet(Download)
            while not iter.isDone():
                if not curve.isValid():  # ignore everything beyond the first valid hit
                    OM.MDagPath.getAPathTo(iter.currentItem(), curve)
                iter.next()
            if curve.isValid():
                ##curveFn.setObject(curve)
                ##curveFn.getPath(pathToCurve)
                OM.MDagPath.getAPathTo(curve, pathToCurve)
                curveFn.setObject(pathToCurve)  # initialize using a dagpath so world-space can be used
                curveFn.getPointAtParam(0.0, curveStartPoint, OM.MSpace.kWorld)
                ##transformFn.setObject(newObjects[i])
                ##transformFn.getPath(pathToNewObject)
                OM.MDagPath.getAPathTo(newObjects[i], pathToNewObject)
                ##transformFn.setObject(newObjects[i])
                ##transformFn.getPath(pathToShape)
                OM.MDagPath.getAPathTo(newObjects[i], pathToShape)
                pathToShape.extendToShape()
                shapeFn.setObject(pathToShape)
                self.__selectedCurves.getDependNode(i, curve)
                ##curveFn.setObject(curve)
                ##curveFn.getPath(pathToCurve)
                OM.MDagPath.getAPathTo(curve, pathToCurve)

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_ShoulderConstraint.py   PipelineConstructionSet(Download)
                        iter.getDependNode(selectedObject)
                        if selectedObject.hasFn(OM.MFn.kTransform):
                            OM.MDagPath.getAPathTo(selectedObject, self.__constrainedObjectArg)
                        else:
                            selectedObjectFn = OM.MFnDependencyNode(selectedObject)
            iter = OM.MItDependencyGraph(plug, OM.MFn.kTransform, OM.MItDependencyGraph.kUpstream)
            while not iter.isDone():
                OM.MDagPath.getAPathTo(iter.currentItem(), path)
                iter.next()
            self.setResult(path.partialPathName())
            iter = OM.MItDependencyGraph(plug, OM.MFn.kTransform, OM.MItDependencyGraph.kUpstream)
            while not iter.isDone():
                OM.MDagPath.getAPathTo(iter.currentItem(), path)
                iter.next()
            self.setResult(path.partialPathName())

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_HipConstraint.py   PipelineConstructionSet(Download)
                        iter.getDependNode(selectedObject)
                        if selectedObject.hasFn(OM.MFn.kTransform):
                            OM.MDagPath.getAPathTo(selectedObject, self.__constrainedObjectArg)
                        else:
                            selectedObjectFn = OM.MFnDependencyNode(selectedObject)
            iter = OM.MItDependencyGraph(plug, OM.MFn.kTransform, OM.MItDependencyGraph.kUpstream)
            while not iter.isDone():
                OM.MDagPath.getAPathTo(iter.currentItem(), path)
                iter.next()
            self.setResult(path.partialPathName())
        elif self.__pelvisObjectArg:
            plug = OM.MPlug(self.__hipConstraintNodeFn.findPlug(AM_HipConstraintNode.kPelvisObjectAttrName, True))
            iter = OM.MItDependencyGraph(plug, OM.MFn.kTransform, OM.MItDependencyGraph.kUpstream)
            while not iter.isDone():
                OM.MDagPath.getAPathTo(iter.currentItem(), path)

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_ExposeTransform.py   PipelineConstructionSet(Download)
                        iter.getDependNode(selectedObject)
                        if selectedObject.hasFn(OM.MFn.kTransform):
                            OM.MDagPath.getAPathTo(selectedObject, self.__exposedObjectArg)
                        else:
                            selectedObjectFn = OM.MFnDependencyNode(selectedObject)
            iter = OM.MItDependencyGraph(plug, OM.MFn.kTransform, OM.MItDependencyGraph.kUpstream)
            while not iter.isDone():
                OM.MDagPath.getAPathTo(iter.currentItem(), path)
                iter.next()
            self.setResult(path.partialPathName())
        elif self.__referenceObjectArg:
            plug = OM.MPlug(self.__exposeNodeFn.findPlug(AM_ExposeTransformNode.kReferenceMatrixAttrName, True))
            iter = OM.MItDependencyGraph(plug, OM.MFn.kTransform, OM.MItDependencyGraph.kUpstream)
            while not iter.isDone():
                OM.MDagPath.getAPathTo(iter.currentItem(), path)

src/r/e/Red9_StudioPack-HEAD/core/Red9_Meta.py   Red9_StudioPack(Download)
                if OpenMaya.MObject.hasFn(mobj, OpenMaya.MFn.kDagNode):
                    dPath = OpenMaya.MDagPath()
                    OpenMaya.MDagPath.getAPathTo(mobj,dPath)
                    return dPath.fullPathName()
                else:

src/a/n/anim_picker-HEAD/anim_picker/handlers/maya_handlers.py   anim_picker(Download)
            return
 
        return OpenMaya.MDagPath.getAPathTo(mobject)
 
    def is_selected(self, node):