Next: vmdnumpy
Up: Controlling VMD from Python
Previous: topology
Contents
Index
trans
Python operations available from the trans module, used to
change the view of the rendered scene.
- rotate(axis, angle):
Rotate the scene about the specified axis by the given angle.
axis should be 'x', 'y', or 'z'; angle is measured in degrees.
- translate(x, y, z):
Translate the scene by the given x, y, and z values.
- scale(factor):
Scale (zoom) the scene by the given factor.
- resetview(molid):
Sets the center, scale, rotation for all molecules so that the
viewpoint is centered on the molecule with the given id.
- get_center(molid):
- set_center(molid, vector):
Get/set the coordinates of the center of the given molecule as a
Python list.
- get_scale(molid):
- set_scale(molid,scale):
Get/set the scale factor used to display the given molecule.
- get_rotation(molid):
- set_rotation(molid, matrix):
Get/set the rotation matrix for the given molecule as a 16-element
Python list in row-major order.
- get_trans(molid):
- set_trans(molid, vector):
Get/set the global translation applied to the given molecule as a
Python list.
- is_fixed(molid):
Returns whether the molecule with the given id is fixed; that is,
whether it is affected by translation, rotation, or scaling. Fixed molecules
may still be animated (see is_active in the animate section).
- fix(molid, trueorfalse):
Make the molecule with the given id fixed or not.
- is_shown(molid):
Returns whether the molecule with the given id is shown or not.
- show(molid, trueorfalse):
Make the molecule with the given id shown or not.
Next: vmdnumpy
Up: Controlling VMD from Python
Previous: topology
Contents
Index
vmd@ks.uiuc.edu