

def doItQuery(self):
    path = OM.MDagPath()
    doubleArray = OM.MScriptUtil()
    if self.__shoulderObjectArg:
        plug = OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(AM_ShoulderConstraintNode.kShoulderObjectAttrName, True))
        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.__spineObjectArg:
        plug = OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(AM_ShoulderConstraintNode.kSpineObjectAttrName, True))
        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.__raisedAngleArg:
        self.setResult(OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(AM_ShoulderConstraintNode.kRaisedAngleAttrName, True)).asDouble())
    elif self.__shoulderAimAxisArg:
        doubleArray.createFromDouble(OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s0' % AM_ShoulderConstraintNode.kShoulderAimAttrName), True)).asDouble(), OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s1' % AM_ShoulderConstraintNode.kShoulderAimAttrName), True)).asDouble(), OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s2' % AM_ShoulderConstraintNode.kShoulderAimAttrName), True)).asDouble())
        self.setResult(OM.MDoubleArray(doubleArray.asDoublePtr(), 3))
    elif self.__shoulderFrontAxisArg:
        doubleArray.createFromDouble(OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s0' % AM_ShoulderConstraintNode.kShoulderFrontAttrName), True)).asDouble(), OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s1' % AM_ShoulderConstraintNode.kShoulderFrontAttrName), True)).asDouble(), OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s2' % AM_ShoulderConstraintNode.kShoulderFrontAttrName), True)).asDouble())
        self.setResult(OM.MDoubleArray(doubleArray.asDoublePtr(), 3))
    elif self.__spineAimAxisArg:
        doubleArray.createFromDouble(OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s0' % AM_ShoulderConstraintNode.kSpineAimAttrName), True)).asDouble(), OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s1' % AM_ShoulderConstraintNode.kSpineAimAttrName), True)).asDouble(), OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s2' % AM_ShoulderConstraintNode.kSpineAimAttrName), True)).asDouble())
        self.setResult(OM.MDoubleArray(doubleArray.asDoublePtr(), 3))
    elif self.__spineFrontAxisArg:
        doubleArray.createFromDouble(OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s0' % AM_ShoulderConstraintNode.kSpineFrontAttrName), True)).asDouble(), OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s1' % AM_ShoulderConstraintNode.kSpineFrontAttrName), True)).asDouble(), OM.MPlug(self.__shoulderConstraintNodeFn.findPlug(('%s2' % AM_ShoulderConstraintNode.kSpineFrontAttrName), True)).asDouble())
        self.setResult(OM.MDoubleArray(iter.asDoublePtr(), 3))

dataset/ETHPy150Open CountZer0/PipelineConstructionSet/maya/plugins/2014/win64/AM_ShoulderConstraint.py AM_ShoulderConstraintCmd.doItQuery/VarMisuse@674/1191 `doubleArray`->`iter`