Orbit Pivot Point Location

Orbit Pivot Point Location

jul936
Participant Participant
656 Views
3 Replies
Message 1 of 4

Orbit Pivot Point Location

jul936
Participant
Participant

Is there any way to access the orbit pivot point location with the api? I am using the api to rotate the model and I would like to be able to rotate about that orbit pivot point. I looked through the documentation and I couldn't find anything about it.

0 Likes
657 Views
3 Replies
Replies (3)
Message 2 of 4

BrianEkins
Mentor
Mentor

I believe the pivot point is the target point of the current camera.  You can get this as shown below.

 

camera = app.activeViewport.camera
pivotPoint = camera.target
---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 3 of 4

jul936
Participant
Participant

I have used camera.target, but that is the center of the view port. The orbit pivot point is independent of the viewport, and is some other point. From what I can tell, it is a point between the centroid of the model, and the origin.

0 Likes
Message 4 of 4

BrianEkins
Mentor
Mentor

Maybe I'm doing something different but it looks like the pivot point is at the center of the viewport.  It could be there's a way to define the pivot that I'm not aware of.

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