Load the file into a jmol variable, split it by lines, and then set the
labels from that:

{*}.label = load("labelFileOnePerLine").split()



On Wed, Apr 17, 2013 at 7:03 AM, Manuel Melle Franco
<manuelme...@gmail.com>wrote:

> Dear All,
>
> I am writing a program that assigns atoms types to an xyz file for MM
> simulations (not jmol related)
> To check those assignments, I want to picture the molecular structure with
> labels with jmol  with strings I read from a file
> (each atoms has a string that describes the atom type).
>
> I have managed to load a numbers from file onto atom properties and plot
> them as labels, but I have not succeded in doing that with strings.
> Comments? advice?
>
> regards
>
> Manuel
>
>
>
>
> ____________________________________________________________
>
> Mohandas K. Gandhi often changed his mind publicly.  An aide once asked
> him how he could so freely contradict this week what he had said just
> last week.  The great man replied that it was because this week he knew
> better.
>
> ____________________________________________________________
>
> Manuel Melle-Franco, Ph.D.
> Investigador Auxiliar
> Centro de Ciências e Tecnologias de Computação, CCTC
> Universidade do Minho
> phone 00351-253604459
> Campus de Gualtar
> 4710-057 Braga
> PORTUGAL
> http://cctc.uminho.pt/portal_memberdata/manu
> http://www.researcherid.com/rid/D-3633-2011
> http://scholar.google.com/citations?user=fFlI9u4AAAAJ&hl=en
>
> ---------------------------------------------------------
>
> A mind all logic is like a knife all blade. It makes the hand bleed that
> uses it.
> Rabindranath Tagore
>
> ---------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to