Skip to content

Does View.center() need to be called several times ? #44

Answered by Yarkane
Yarkane asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for you answer, here are more information :

  • It seems that you're right about the fact that center() place the camera to the correct position, as when I remove look(), the position of the camera is at the right place : calling center() a second time does not change anything, and I can rotate manually the camera so I get the view I wanted to have with look().
  • I don't know for sure what navigation object I'm using, but if the default tool is Orbit, then that's what I use, and as the issue seems to be on look() specifically it's coherent.

FYI, these two codes give equivalent results (that are incorrect, so) :

            # Moving camera
            view_3D.center(center_vec) # Center…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@jimy-byerley
Comment options

@Yarkane
Comment options

@jimy-byerley
Comment options

@Yarkane
Comment options

@jimy-byerley
Comment options

Answer selected by Yarkane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants