{"action":"created","issue":{"url":"https://api.github.com/repos/enthought/mayavi/issues/589","repository_url":"https://api.github.com/repos/enthought/mayavi","labels_url":"https://api.github.com/repos/enthought/mayavi/issues/589/labels{/name}","comments_url":"https://api.github.com/repos/enthought/mayavi/issues/589/comments","events_url":"https://api.github.com/repos/enthought/mayavi/issues/589/events","html_url":"https://github.com/enthought/mayavi/issues/589","id":288259535,"number":589,"title":"Extract View from Mayavi Scene ","user":{"login":"alsignoriello","id":7944595,"avatar_url":"https://avatars3.githubusercontent.com/u/7944595?v=4","gravatar_id":"","url":"https://api.github.com/users/alsignoriello","html_url":"https://github.com/alsignoriello","followers_url":"https://api.github.com/users/alsignoriello/followers","following_url":"https://api.github.com/users/alsignoriello/following{/other_user}","gists_url":"https://api.github.com/users/alsignoriello/gists{/gist_id}","starred_url":"https://api.github.com/users/alsignoriello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alsignoriello/subscriptions","organizations_url":"https://api.github.com/users/alsignoriello/orgs","repos_url":"https://api.github.com/users/alsignoriello/repos","events_url":"https://api.github.com/users/alsignoriello/events{/privacy}","received_events_url":"https://api.github.com/users/alsignoriello/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-12T22:04:55Z","updated_at":"2018-05-02T19:46:54Z","closed_at":null,"author_association":"NONE","body":"I am using mlab to produce a Mayavi figure/scene with a triangular mesh using mlab.show(). Once the scene is open, I can manipulate the mesh to be in the view that I would like. I would like to extract this view from the current scene so I can generate other images using the exact same view. Is there a way to extract the current view (azimuth, elevation, distance, focal point) from an open figure/scene? I have tried to estimate the view from the original settings using v = view(), but it is not as precise as I would like. Thanks!"},"comment":{"url":"https://api.github.com/repos/enthought/mayavi/issues/comments/386098202","html_url":"https://github.com/enthought/mayavi/issues/589#issuecomment-386098202","issue_url":"https://api.github.com/repos/enthought/mayavi/issues/589","id":386098202,"user":{"login":"larsoner","id":2365790,"avatar_url":"https://avatars1.githubusercontent.com/u/2365790?v=4","gravatar_id":"","url":"https://api.github.com/users/larsoner","html_url":"https://github.com/larsoner","followers_url":"https://api.github.com/users/larsoner/followers","following_url":"https://api.github.com/users/larsoner/following{/other_user}","gists_url":"https://api.github.com/users/larsoner/gists{/gist_id}","starred_url":"https://api.github.com/users/larsoner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsoner/subscriptions","organizations_url":"https://api.github.com/users/larsoner/orgs","repos_url":"https://api.github.com/users/larsoner/repos","events_url":"https://api.github.com/users/larsoner/events{/privacy}","received_events_url":"https://api.github.com/users/larsoner/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T19:46:54Z","updated_at":"2018-05-02T19:46:54Z","author_association":"CONTRIBUTOR","body":"So far I've had good luck with:\r\n```\r\nview = (mlab.view(figure=_f), mlab.roll(figure=_f))\r\n...\r\nmlab.view(*view[0], figure=_f)\r\nmlab.roll(view[1], figure=_f)\r\n```\r\nDoes this work for you?"}}
{"actor":{"display_login":"larsoner"}}