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"}
def execute(self, context): point = power.create_point("ARBITRARY_POINT") utils.select(point) return {"FINISHED"}