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

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

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_Ribbon.py   PipelineConstructionSet(Download)
            if selection.length() < 1:
                # if in create mode, use the argument specified with the -curve flag as the selected curve
                if not argData.isQuery() and not argData.isEdit() and argData.isFlagSet(AM_RibbonsCmd.kCurveFlag):
                    selection.add(argData.flagArgumentString(AM_RibbonsCmd.kCurveFlag, 0))
                else:
                    raise Exception(
                        'This command requires at least 1 object to be specified or selected;  found %i.' % selection.length())
 
            # in edit or query mode, the object must be a single am_ribbon node
            if argData.isEdit() or argData.isQuery():
                    selection.add(argData.flagArgumentString(AM_RibbonsCmd.kCurveFlag, 0))
                # store the curves if command is in create mode or -curve has been specified
                if not argData.isEdit() or (argData.isEdit() and argData.isFlagSet(AM_RibbonsCmd.kCurveFlag)):
                    curve = OM.MObject()
                    iter = OM.MItSelectionList(selection, OM.MFn.kNurbsCurve)
                    self.__uvPinArg = kUVPinMapping[argData.flagArgumentString(AM_RibbonsCmd.kUVPinFlag, 0).lower()]
 
                self.__isEditUsed = argData.isEdit()
                self.__isQueryUsed = False
 

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_ExposeTransform.py   PipelineConstructionSet(Download)
            if not sel.length() == 1:
                # if in create mode, use the argument specified with the -object flag as the exposed object
                if not argData.isEdit() and not argData.isQuery() and argData.isFlagSet(
                        AM_ExposeTransformCmd.kExposedObjectFlag):
                    sel.add(argData.flagArgumentString(AM_ExposeTransformCmd.kExposedObjectFlag, 0))
                while not iter.isDone():
                    # in edit or query mode, the object must be an am_exposeTransform node
                    if argData.isEdit() or argData.isQuery():
                        iter.getDependNode(self.__exposeNodeArg)
                        if not (self.__exposeNodeFn.typeId() == AM_ExposeTransformNode.kPluginNodeId):
                        argData.flagArgumentDouble(AM_ExposeTransformCmd.kReferenceAxisFlag, 2))
                # set the isEditUsed flag only after all arguments have been stored to ensure command is not added to queue before it has done anything
                self.__isEditUsed = argData.isEdit()
                self.__isQueryUsed = False
                self.redoIt()

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_ShoulderConstraint.py   PipelineConstructionSet(Download)
            if not sel.length() == 1:
                # edit and query mode require one object
                if argData.isEdit() or argData.isQuery():
                    raise Exception(
                        'This command requires exactly 1 argument to be specified or selected;  found %i.' % sel.length())
                while not iter.isDone():
                    # in edit or query mode, the object must be an am_shoulderConstraint node
                    if argData.isEdit() or argData.isQuery():
                        iter.getDependNode(self.__shoulderConstraintNodeArg)
                        self.__shoulderConstraintNodeFn.setObject(self.__shoulderConstraintNodeArg)
                        argData.flagArgumentDouble(AM_ShoulderConstraintCmd.kSpineFrontFlag, 2))
                # set the isEditUsed flag only after all arguments have been stored to ensure command is not added to queue before it has done anything
                self.__isEditUsed = argData.isEdit()
                self.__isQueryUsed = False
                self.redoIt()

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_HipConstraint.py   PipelineConstructionSet(Download)
            if not sel.length() == 1:
                # edit and query mode require one object
                if argData.isEdit() or argData.isQuery():
                    raise Exception(
                        'This command requires exactly 1 argument to be specified or selected;  found %i.' % sel.length())
                while not iter.isDone():
                    # in edit or query mode, the object must be an am_hipConstraint node
                    if argData.isEdit() or argData.isQuery():
                        iter.getDependNode(self.__hipConstraintNodeArg)
                        self.__hipConstraintNodeFn.setObject(self.__hipConstraintNodeArg)
                        argData.flagArgumentDouble(AM_HipConstraintCmd.kPelvisFrontFlag, 2))
                # set the isEditUsed flag only after all arguments have been stored to ensure command is not added to queue before it has done anything
                self.__isEditUsed = argData.isEdit()
                self.__isQueryUsed = False
                self.redoIt()

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/pymel-1.0.5/pymel/tools/scriptEditor/pymelScrollFieldReporter.py   PipelineConstructionSet(Download)
 
            # EDIT
            if argData.isEdit():
                reporter = reporters[name]
                if filters:

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/pymel-1.0.3/pymel/tools/scriptEditor/pymelScrollFieldReporter.py   PipelineConstructionSet(Download)
 
            # EDIT
            if argData.isEdit():
                reporter = reporters[name]
                if filters:

src/p/y/pymel-HEAD/pymel/tools/scriptEditor/pymelScrollFieldReporter.py   pymel(Download)
 
            # EDIT
            if argData.isEdit():
                reporter = reporters[name]
                if filters: