 |  |  |  | Command |  | Argument |
 | Datatype |  | Default |  | Min |  | Max |  |
 |  | Format: |  | Transform<Obj|All> |
| Object selection, |  | SELECTION |  |
- |  | - |  | - |  |  | |  |
| | KeepPos = Yes | No |  | STRING |  | Yes |
 | - |
 | - |  |  |
 | Python: |
 | Transform<Obj|All>(selection1,keeppos=None) |
 |  |  | Menu: |  | Edit > Transform |  |  |
 | Related: |
 | Center
, Transfer, MoveAtom
|  |  |
 | Required: |  |  |  |
 |
The Transform
command replaces all local atom coordinates in the selected object with the corresponding coordinates in the
global coordinate system, thus fixing the current position and orientation of the object in the individual atom coordinates.
There are two ways to ensure that this procedure does not cause an unexpected shift of the atoms on screen:
Example 1:
TransformObj 1crn,KeepPos=No
Example 2:
TransformObj 1crn,KeepPos=Yes
As above, but to make sure that the atoms do not move on screen,
the object's position is subtracted from the individual atom coordinates afterwards. This way,
the object position can be kept.
|