Exemplo n.º 1
0
 def execute(self, context):
     # Get Selected item.
     selection = utils.get_current_selection()
     button = PART_BUILDER.build_item("U_SWITCHPRESS")
     # Snap to selection.
     if selection:
         SNAPPER.snap_objects(button, selection)
         utils.zero_scale(button)
     # Select new item.
     utils.select(button)
     return {"FINISHED"}
Exemplo n.º 2
0
 def execute(self, context):
     point = power.create_point("ARBITRARY_POINT")
     utils.select(point)
     return {"FINISHED"}