User Tools

Site Tools


command:rotate

rotate

“rotate” rotates the atomic coordinates of atoms in a selection about an axis. Alternatively, it modifies the matrix associated with a particular object or object state.

Usage

rotate axis, angle [, selection [, state [, camera [, object [, origin ]]]]]

Arguments

axis = x, y, z, or float vector: axis about which to rotate

angle = float: degrees of rotation

selection = string: atoms whose coordinates should be modified {default: all}

state > 0: only the indicated state is modified

state = 0: all states are modified

state = -1: only the current state is modified {default}

camera = 0 or 1: is the axis specific in camera coordinates? {default: 1}

object = string: object name (only if rotating object matrix) {default: None}

origin = float vector: origin of rotateion {default: None}

Examples

rotate x, 45, pept 

rotate [1,1,1], 10, chain A 

Notes

Behavior differs depending on whether or not the “object” parameter is specified.

If object is None, then the atomic coordinates are modified directly, and all representation geometries will need to be regenerated to reflect the new atomic coordinates.

If object is set to an object name, then the selection field is ignored and instead of translating the atomic coordinates, the object matrix is modified. This option is only intended for use in animations and is not yet fully supported.

See Also

command/rotate.txt · Last modified: 2013/08/19 21:01 (external edit)