Message 1 of 5
Why does the view jump upon refresh when the camera position and orientation is not changed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm working on a add-in that needs to control the view and ran into unexpected behavior. The test function below updates the view, but does not modify it. Yet, When you change the view manually to some arbitrary viewpoint and then run this function, the view jumps. The orientation remains the same but the view jumps in zoom and pans.
def test():
app = adsk.core.Application.get()
view = app.activeViewport
camera = view.camera
view.camera = camera
view.refresh()
print("test: view has been refreshed...\n")
I need to change the current view without this jump. What am I missing here?