To be consistent  with the language in the documentation, I have changed
the code so that you can also do this:

translate selected {1 1 1 } {atomno=3}

even though it is not really the "selected" atoms that are being moved.

See http://chemapps.stolaf.edu/jmol/docs/?ver=14.2#translate



On Wed, Mar 25, 2015 at 7:24 AM, Robert Hanson <hans...@stolaf.edu> wrote:

> It's
>
>     // translate [selected] X|Y|Z x.x [NM|ANGSTROMS]
>     // translate [selected] X|Y x.x%
>
> For example
>
> translate selected X 3.5 # angstroms assumed here
> translate selected Y 50%
>
> So the atoms that are moving must be the ones already selected.
>
> I looked at the Jmol 11 code, where the command was introduced, and there
> wasn't there; I have no idea where that option in the documentation comes
> from. I've removed that from the documentation. It was supposed to just
> read:
>
> translateSelected
>
> *Translates a specifed subset of atoms. All of the options for translate
> <http://chemapps.stolaf.edu/jmol/docs/index.htm?ver=14.4#translate> are
> available for translateSelected, which then operate only on the currently
> selected atoms. *
> *Examples:* select molecule=1
> translateSelected {0 0 1/1}
> ​BUT, what is there and is not documented is that you can do this:
>
> translate {0 0 1/1} {atomno=3}
>
> So just take out the "selected" there and you will be fine.
>
> Bob
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to