Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Camera API terminate acvite command

ddkonev
Explorer Explorer
331 Views
2 Replies
Message 1 of 3

Camera API terminate acvite command

ddkonev
Explorer
Explorer

When i move camera using camera api from add-ins (from custom event) - currently active command terminated. How i can prevent this behaviour and keep active command.
For example: i draw cube - UI wait for me to input height of cube, in this time i change viewport using camera api - UI finish command with out my solution about height of cube

0 Likes
Accepted solutions (1)
332 Views
2 Replies
Replies (2)
Message 2 of 3

tykapl.breuil
Advocate
Advocate
Accepted solution

For the addin I'm developping, I move the camera using buttons on a custom palettes which allows me not to interrupt the current command. If you are activating this movement through a Command Definition, Fusion will stop the curent command to move the camera as only a single CommandDefinition can be active at a time. However, I do not know of any way to make Fusion pause the currently active command then come back to it when creating a CommandDefinition through an addin (like the OrbitCommand behaves for example).

1 Like
Message 3 of 3

ddkonev
Explorer
Explorer

thank you for explanation how commands work in fusion 360
i copy-paste code from other source and first command in my custom event was be - execution of selectCommand
and this command break original command
Now i can rotate camera without breaking active command

1 Like