def RunOrTest(self, b_run): sel = Gui.Selection.getSelection() if len(sel)==0 : raise CommandError(self,"No object selected. Please select objects to duplicate, first.") else: if b_run: (full_list, top_list, implicit_list) = Containers.expandList(sel) duplicateObjects(full_list, top_list, Containers.activeContainer())
def RunOrTest(self, b_run): sel = Gui.Selection.getSelection() if len(sel)==0 : raise CommandError(self,"No object selected. Please select something, first.") else: if b_run: (full_list, top_list, implicit_list) = Containers.expandList(sel) select(implicit_list)
def RunOrTest(self, b_run): sel = Gui.Selection.getSelection() if len(sel) == 0: raise CommandError( self, "No object selected. Please select something, first.") else: if b_run: (full_list, top_list, implicit_list) = Containers.expandList(sel) select(implicit_list)
def RunOrTest(self, b_run): sel = Gui.Selection.getSelection() if len(sel) == 0: raise CommandError( self, "No object selected. Please select objects to duplicate, first." ) else: if b_run: (full_list, top_list, implicit_list) = Containers.expandList(sel) duplicateObjects(full_list, top_list, Containers.activeContainer())