Chimera Commands Index

matrixcopy  from_model  to_model  [ moving  move_models ]

Matrixcopy applies the transformation matrix (rotation and translation) of a model to another model. Models are indicated by integer model number, with or without a preceding # symbol.

If from_model specifies a single model, to_model can specify one or more models to receive the same transformation. If from_model and to_model both specify a single model, the moving keyword can be used to transform models other than (or in addition to) to_model: the move_models will move as if rigidly carried along with to_model if the from_model matrix were applied to it, even if to_model is not actually moved. Normally (moving not used), only to_model is moved.

If from_model specifies multiple models, then to_model must specify an equal number of models. Pairing is in the order of specification, i.e., the transformation of of the first from_model is applied to the first to_model, second applied to the second, and so on.


matrixcopy 0 1
matrixcopy 0 1-2
matrixcopy #1 #0,2
matrixcopy #0 #4 moving #1,2,3
The latter moves models #1-3 as if rigidly transformed along with #4 if the matrix of #0 were applied to #4.

See also: match, matchmaker, matrixget, matrixset, measure rotation, sym