Python Runtime Questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a couple of questions about how the Python runtime environment works with Fusion 360.
First, is there a way to execute a python script without manually executing it from Fusion 360? I have VS PyTools and I would like to start my script from the VS. Right now, I have to attach the debugger to the Fusion 360 process and then launch my Script from the Add-In menu so that it can stop at my breakpoints. This is a bit cumbersome. Is there a way to tell fusion 360 to execute a script externally?
Second, is there a configuration setting for Fusion 360's Python interpreter? I don't see a PythonPath environment variable. Theoretically, the interpreter's version shouldn't matter provided it is compatible with the Fusion API import files. I am assuming Fusion 360's API architecture has a clear wall between a Python add in and the host as it does with its C++ DLLs counterparts. It may be, however, that Fusion 360 uses Python internally and requires the same interpreter to be used.