save plugins Fusion 360
This commit is contained in:
29
ControllByPs4/commands/__init__.py
Normal file
29
ControllByPs4/commands/__init__.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# Here you define the commands that will be added to your add-in.
|
||||
|
||||
# TODO Import the modules corresponding to the commands you created.
|
||||
# If you want to add an additional command, duplicate one of the existing directories and import it here.
|
||||
# You need to use aliases (import "entry" as "my_module") assuming you have the default module named "entry".
|
||||
import imp
|
||||
from .commandDialog import entry as commandDialog
|
||||
from .backend import backend
|
||||
|
||||
# TODO add your imported modules to this list.
|
||||
# Fusion will automatically call the start() and stop() functions.
|
||||
commands = [
|
||||
commandDialog,
|
||||
backend
|
||||
]
|
||||
|
||||
|
||||
# Assumes you defined a "start" function in each of your modules.
|
||||
# The start function will be run when the add-in is started.
|
||||
def start():
|
||||
for command in commands:
|
||||
command.start()
|
||||
|
||||
|
||||
# Assumes you defined a "stop" function in each of your modules.
|
||||
# The stop function will be run when the add-in is stopped.
|
||||
def stop():
|
||||
for command in commands:
|
||||
command.stop()
|
||||
Reference in New Issue
Block a user