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

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

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_Ribbon.py   PipelineConstructionSet(Download)
            curve = OM.MDagPath()
            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():
                    pathToCurve = OM.MDagPath()
                    while not iter.isDone():
                        if not pathToCurve.isValid():  # stop at the first one we find
                            ##OM.MFnDagNode(iter.currentItem()).getPath(pathToCurve)
                            OM.MDagPath.getAPathTo(iter.currentItem(), pathToCurve)
                        iter.next()
                    if pathToCurve.isValid():
 
            # connect the curve to the ribbon node if specified
            if pathToCurve.isValid():
                self.__dgModify.commandToExecute('connectAttr -f %s.worldSpace[0] %s.%s' % (
                    pathToCurve.fullPathName(),

src/n/g/ngSkinTools-HEAD/ngSkinTools/python/ngSkinTools/utils.py   ngSkinTools(Download)
        sel.getDagPath(0,result)
 
        if not result.isValid():
            raise MessageException("node %s does not exist" % nodeName) 
        return result