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

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

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_ShoulderConstraint.py   PipelineConstructionSet(Download)
                        else:
                            if isSpineSpecified:
                                sel.add(argData.flagArgumentString(AM_ShoulderConstraintCmd.kSpineObjectFlag, 0))
                                sel.getDagPath(sel.length() - 1, self.__spineObjectArg)
                            else:
                                sel.getDagPath(0, self.__spineObjectArg)
                            if isShoulderSpecified:
                                sel.add(argData.flagArgumentString(AM_ShoulderConstraintCmd.kShoulderObjectFlag, 0))
                    elif sel.length() == 3:
                        if isSpineSpecified:
                            sel.add(argData.flagArgumentString(AM_ShoulderConstraintCmd.kSpineObjectFlag, 0))
                            sel.getDagPath(sel.length() - 1, self.__spineObjectArg)
                        else:
                            sel.getDagPath(0, self.__spineObjectArg)
                        if isShoulderSpecified:
                            sel.add(argData.flagArgumentString(AM_ShoulderConstraintCmd.kSpineObjectFlag, 0))
                # validate the name flag
                if argData.isFlagSet(AM_ShoulderConstraintCmd.kNameFlag):
                    self.__shoulderConstraintNodeName = argData.flagArgumentString(AM_ShoulderConstraintCmd.kNameFlag,
                                                                                   0)
                    if (len(self.__shoulderConstraintNodeName) < 1 or self.__shoulderConstraintNodeName[

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_HipConstraint.py   PipelineConstructionSet(Download)
                        else:
                            if isPelvisSpecified:
                                sel.add(argData.flagArgumentString(AM_HipConstraintCmd.kPelvisObjectFlag, 0))
                                sel.getDagPath(sel.length() - 1, self.__pelvisObjectArg)
                            else:
                                sel.getDagPath(0, self.__pelvisObjectArg)
                            if isHipSpecified:
                                sel.add(argData.flagArgumentString(AM_HipConstraintCmd.kHipObjectFlag, 0))
                    elif sel.length() == 3:
                        if isPelvisSpecified:
                            sel.add(argData.flagArgumentString(AM_HipConstraintCmd.kPelvisObjectFlag, 0))
                            sel.getDagPath(sel.length() - 1, self.__pelvisObjectArg)
                        else:
                            sel.getDagPath(0, self.__pelvisObjectArg)
                        if isHipSpecified:
                            sel.add(argData.flagArgumentString(AM_HipConstraintCmd.kPelvisObjectFlag, 0))
                # validate the name flag
                if argData.isFlagSet(AM_HipConstraintCmd.kNameFlag):
                    self.__hipConstraintNodeName = argData.flagArgumentString(AM_HipConstraintCmd.kNameFlag, 0)
                    if (len(self.__hipConstraintNodeName) < 1 or self.__hipConstraintNodeName[
                        0].isalpha() is False or len(re.split('\W+', self.__hipConstraintNodeName)) > 1):

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_ExposeTransform.py   PipelineConstructionSet(Download)
                if not argData.isEdit() and not argData.isQuery() and argData.isFlagSet(
                        AM_ExposeTransformCmd.kExposedObjectFlag):
                    sel.add(argData.flagArgumentString(AM_ExposeTransformCmd.kExposedObjectFlag, 0))
                    sel.getDagPath(sel.length() - 1, self.__exposedObjectArg)
                else:
                # validate the name flag
                if argData.isFlagSet(AM_ExposeTransformCmd.kNameFlag):
                    self.__exposeNodeName = argData.flagArgumentString(AM_ExposeTransformCmd.kNameFlag, 0)
                    if (len(self.__exposeNodeName) < 1 or self.__exposeNodeName[0].isalpha() is False or len(
                            re.split('\W+', self.__exposeNodeName)) > 1):
                if argData.isFlagSet(AM_ExposeTransformCmd.kExposedObjectFlag):
                    sel = OM.MSelectionList()
                    sel.add(argData.flagArgumentString(AM_ExposeTransformCmd.kExposedObjectFlag, 0))
                    sel.getDagPath(0, self.__exposedObjectArg)
                if argData.isFlagSet(AM_ExposeTransformCmd.kReferenceObjectFlag):
                    sel = OM.MSelectionList()
                    sel.add(argData.flagArgumentString(AM_ExposeTransformCmd.kReferenceObjectFlag, 0))
                    sel.getDagPath(0, self.__referenceObjectArg)
                if argData.isFlagSet(AM_ExposeTransformCmd.kRotateOrderFlag):
                    rotateOrderStr = argData.flagArgumentString(AM_ExposeTransformCmd.kRotateOrderFlag, 0)

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_Ribbon.py   PipelineConstructionSet(Download)
                # 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(
                if argData.isFlagSet(AM_RibbonsCmd.kCurveFlag):
                    selection.clear()
                    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)):
                # validate the name flag
                if argData.isFlagSet(AM_RibbonsCmd.kNameFlag):
                    self.__baseNameArg = argData.flagArgumentString(AM_RibbonsCmd.kNameFlag, 0)
                    if (len(self.__baseNameArg) < 1 or self.__baseNameArg[0].isalpha() is False or len(
                            re.split('\W+', self.__baseNameArg)) > 1):

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/pymel-1.0.5/pymel/tools/scriptEditor/pymelScrollFieldReporter.py   PipelineConstructionSet(Download)
                        filters[key] = argData.flagArgumentBool( key, 0 )
                    elif data[1] == OpenMaya.MSyntax.kString:
                        filters[key] = argData.flagArgumentString( key, 0 )
 
            globalFilters = {}
                    reporter.clear()
                elif argData.isFlagSet( kText[0] ):
                    reporter.text( argData.flagArgumentString( kText[0], 0 ) )
                elif argData.isFlagSet( kCmdReporter[0] ):
                    reporter.addCmdReporter( argData.flagArgumentString( kCmdReporter[0], 0 ) )

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/pymel-1.0.3/pymel/tools/scriptEditor/pymelScrollFieldReporter.py   PipelineConstructionSet(Download)
                        filters[key] = argData.flagArgumentBool( key, 0 )
                    elif data[1] == OpenMaya.MSyntax.kString:
                        filters[key] = argData.flagArgumentString( key, 0 )
 
            globalFilters = {}
                    reporter.clear()
                elif argData.isFlagSet( kText[0] ):
                    reporter.text( argData.flagArgumentString( kText[0], 0 ) )
                elif argData.isFlagSet( kCmdReporter[0] ):
                    reporter.addCmdReporter( argData.flagArgumentString( kCmdReporter[0], 0 ) )

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_InsertParentsCmd.py   PipelineConstructionSet(Download)
            if argData.isFlagSet(AM_InsertParentsCmd.kPrefixFlag):
                self.__suffix = ''
                self.__prefix = argData.flagArgumentString(AM_InsertParentsCmd.kPrefixFlag, 0)
                self.validateAffix(self.__prefix)
            if argData.isFlagSet(AM_InsertParentsCmd.kSuffixFlag):
                self.__suffix = argData.flagArgumentString(AM_InsertParentsCmd.kSuffixFlag, 0)

src/p/y/pymel-HEAD/pymel/tools/scriptEditor/pymelScrollFieldReporter.py   pymel(Download)
                        filters[key] = argData.flagArgumentBool( key, 0 )
                    elif data[1] == OpenMaya.MSyntax.kString:
                        filters[key] = argData.flagArgumentString( key, 0 )
 
            globalFilters = {}
                    reporter.clear()
                elif argData.isFlagSet( kText[0] ):
                    reporter.text( argData.flagArgumentString( kText[0], 0 ) )
                elif argData.isFlagSet( kCmdReporter[0] ):
                    reporter.addCmdReporter( argData.flagArgumentString( kCmdReporter[0], 0 ) )

src/r/e/Red9_StudioPack-HEAD/plug-ins/SnapRuntime.py   Red9_StudioPack(Download)
        argData = OpenMaya.MArgDatabase(self.syntax(), args)
        if argData.isFlagSet(self.kSourceFlag):
            Source=argData.flagArgumentString(self.kSourceFlag, 0)
        if argData.isFlagSet(self.kDestinationFlag):
            Destin=argData.flagArgumentString(self.kDestinationFlag, 0)