
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am working on a script that might someday be useable for other people and I wonder how to deploy it. I use python for developing my script.
Currently, I have a main-method and when I run my script, I create my geometry and then my script is done. However, each and everytime I restart my script, spyder asks me whether I want to start a second instance, so obviously my script does not exit although I call
adsk.terminate() within my script.
I see also that in the example bolt, there is some command pattern that registers a command object, so here the script does not simply run through from top to bottom.
Is there any documentation on how this is supposed to work? My goal is to have in the end a button in the user interface that does something.
But do I somehow add a button and on each click my scripts is started again or does my script run once but adds the button to the ui itself and then waits for clicks?
Solved! Go to Solution.