
29 Nov
2005
29 Nov
'05
6:25 p.m.
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@cgl.ucsf.edu http://www.cgl.ucsf.edu