def collect_worldSpaceObjects(self, progressBar=None): _str_func = 'collect_worldSpaceObjects' log.debug("|{0}| >> ...".format(_str_func) + cgmGEN._str_hardBreak) log.debug(self) ml_objs = [] mMasterNull = self.masterNull mWorldSpaceObjectsGroup = mMasterNull.worldSpaceObjectsGroup mPuppetSpaceObjectsGroup = mMasterNull.puppetSpaceObjectsGroup ml_children = self.masterControl.getChildren(asMeta=1) or [] if progressBar: cgmUI.progressBar_start(progressBar) len_children = len(ml_children) for i, mObj in enumerate(ml_children): if progressBar: #mc.progressBar(progressBar,edit = True, # minValue = 0, # maxValue=len_children,step=i, vis=True) cgmUI.progressBar_set(progressBar, minValue=0, maxValue=len_children + 1, progress=i, vis=True) time.sleep(.01) if mObj.getMayaAttr('cgmType') in ['dynDriver']: mObj.parent = mPuppetSpaceObjectsGroup ml_objs.append(mObj) ml_children = mObj in mMasterNull.getChildren(asMeta=1) or [] if progressBar: len_children = len(ml_children) for i, mObj in enumerate(ml_children): if progressBar: cgmUI.progressBar_set(progressBar, minValue=0, maxValue=len_children + 1, progress=i, vis=True) time.sleep(.01) if mObj.getMayaAttr('cgmType') in ['dynDriver']: mObj.parent = mWorldSpaceObjectsGroup ml_objs.append(mObj) if progressBar: cgmUI.progressBar_end(progressBar) return ml_objs
cgmUI.progressBar_set(progressBar, minValue=0, maxValue=int_lenModules + 1, progress=i, vis=True) try: mModule.UTILS.mirror_verifySetup(mModule, d_runningSideIdxes, ml_processed, progressBar=progressBar, progressEnd=False) except Exception, err: log.error("{0} | {1}".format(mModule, err)) if progressBar and progressEnd: cgmUI.progressBar_end(progressBar) return #>>>Module control maps =============================================================================== for i, mModule in enumerate(ml_modules): _str_module = mModule.p_nameShort md_data[mModule] = {} #...Initize a dict for this object _d = md_data[mModule] #...link it _d['str_name'] = _str_module md, ml = mModule.atUtils('controls_getDat') _d['md_controls'] = md _d['ml_controls'] = ml #mModule.rigNull.moduleSet.getMetaList() _d['mi_mirror'] = mModule.atUtils('mirror_get') _d['str_side'] = cgmGEN.verify_mirrorSideArg(