- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
After most of the operation, I have to press 'Enter' to finish, 'Enter' is not in a easy position to press.
Is that a way I can write a python script to perform a 'Enter' press? then binding it to 'SPACE', much more easy to press.
I have already write some shortcut in Python to make it easy to work.
For example, I just press a 'G' button then I can go back to home view. It's quite a easy command like below:
def command_execute(args: adsk.core.CommandEventArgs):
futil.log(f"{CMD_NAME} Command Execute Event")
## Go HOME!!!!
app.activeViewport.goHome()
Then set a shortcut 'g' in Fusion, then every time I press 'G', it go back to home view.
So how can I send a 'Enter' in python to Fusion interface? imitate a key press 'Enter' then send it to Fusion to finish an operation?
The only information I got now is the keycode of 'Enter'.
EnterKeyCode | 16777221 | Enter |
Thanks in advanced if you can share some experience with me 🙂
Solved! Go to Solution.