[Chimera-users] Feature Request: Expose rotation to python
Eric Pettersen
pett at cgl.ucsf.edu
Tue Nov 29 10:25:31 PST 2005
On Nov 29, 2005, at 10:11 AM, Thomas Goddard wrote:
> Hi Charlie,
>
> To set a model's transformation to the identity:
>
> identity = chimera.Xform()
> model.openState.xform = identity
The key thing to realize is that in a statement like:
x = model.openState.xform
x is now a _copy_ of the transformation matrix -- making changes to
this copy doesn't affect the actual transformation matrix. To make
the changes take effect you need to:
<make changes to x>
model.openState.xform = x
--Eric
Eric Pettersen
UCSF Computer Graphics Lab
pett at cgl.ucsf.edu
http://www.cgl.ucsf.edu
More information about the Chimera-users
mailing list