Quoting Serge Cohen <[email protected]>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi again,
>
> I posted a question few days ago about the way to center on a particular
> zone of a structure without using the zoom command (which would touch a
> lot of view parameters at once).
Dear Serge,
I think that the following code works in the way you want - it brings the
selection to center of the screen, at the same setting it as the center of
rotation:
cmd.origin(selection)
m = cmd.get_view(0)
n = m[0:9]+(0.0,0.0)+m[11:]
cmd.set_view(n)
Regards,
Paulo