Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help
Special pages
SBGrid Resources
SBGrid Consortium
SBGrid Data Bank
Software Webinars
PyMOL Webinar
PyMOL Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Translate
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''translate''' can be used to translate the atomic coordinates of a molecular object (move an object). Behavior differs depending on whether or not the "object" parameter is specified. If object is None, then translate translates atomic coordinates according to the vector provided for the selection and in the state provided. If object is set to an object name, then selection and state are ignored and instead of translating the atomic coordinates, the [[Object_Matrix|object matrix]] is modified. This option is intended for use in animations. The "camera" option controls whether the camera or the model's axes are used to interpret the translation vector. To move the object relative to the camera set '''camera=1''' (which is default), or to move the molecule relative to the model's geometry, set, '''camera=0'''. ===USAGE=== <source lang="python"> translate vector [,selection [,state [,camera [,object ]]]] </source> ===ARGUMENTS=== '''vector''' ::float vector: [x, y, z] translation vector '''selection''' :: string: atoms whose coordinates should be modified {default: all} '''state''' :: state > 0: only the indicated state is modified :: state = 0: all states are modified :: state = -1: only current state is modified {default} '''camera''' :: 0 or 1: is the vector in camera coordinates? {default: 1 (yes)} '''object''' :: string: object name (only if rotating object matrix) {default: None} ===PYMOL API=== <source lang="python"> cmd.translate(list vector, string selection = "all", int state = 0, int camera = 1, string object = None) </source> ===EXAMPLES=== ====Example 1==== A simple example; just move the alpha-carbons one Ang. along the X-axis. <source lang="python"> # move the alpha carbons one Ang. on the X-axis translate [1,0,0], name ca </source> ====Example 2==== A slightly more complicated example. Load two proteins, align them, and then move one away from the other to see their similarities separately. <source lang="python"> # load 1cll and 1ggz fetch 1cll 1ggz, async=0 # align the two proteins cealign 1cll, 1ggz # orient the proteins orient # move 1cll above 1ggz so we can # see both proteins separately translate [0, 40, 0], 1cll </source> ===NOTES=== # if state = 0, then only visible state(s) are affected. # if state = -1, then all states are affected. ===SEE ALSO=== [[Rotate]], [[Move]], [[Model_Space_and_Camera_Space]] [[Category:Commands|Translate]] [[Category:States|Translate]]
Summary:
Please note that all contributions to PyMOL Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
PyMOL Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Translate
Add topic