Пример #1
0
 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())
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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())