Control the View Cube orientation through API

jnaudin57
Explorer

Control the View Cube orientation through API

jnaudin57
Explorer
Explorer

Hi!

 

Is it possible to control the View Cube orientation (angles/position of the current view) through API?

What would be the function?

Fusion must be aware of the orientation since Custom Named Views can be created.

 

Thanks!

0 Likes
Reply
Accepted solutions (1)
1,279 Views
3 Replies
Replies (3)

BrianEkins
Mentor
Mentor
Accepted solution

It is possible to control the camera within Fusion. This defines what you see in the current view.  Here's a blog post I wrote several years ago describing cameras in Inventor.  All of the same concepts apply to the camera in Fusion.  Here's a response to a previous question on this forum with some code that rotates a camera around the origin.  Hopefully, both of those will help.

 

It's not currently possible to access the View Cube functionality, but it's not needed if you just want to control the current view. Where the View Cube might be needed is if you want to know what direction the "Top" or "Front" is. The is defined by the view cube and can be changed by the user.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
2 Likes

jnaudin57
Explorer
Explorer
Amazing! Thanks
0 Likes

jnaudin57
Explorer
Explorer
Do you think it's better I use a Script or an Add-in to code what would essentially be some kind of mouse?

I'd like it to be able to set specific views (with shortcuts for example), while working.
0 Likes