Hi Angel, Bob, et al,
I think we've cracked the problem of centering charges, lone pairs,
radicals etc. on atoms in animations.
http://www.chemtube3d.com/sandbox/Carbenes2.html shows an example. I
recommend the "larger view" to see the details.
select all;set labelOffset 0 0;font label 20 serif bold;color label
orange;set fontScaling TRUE;
This centres the labels, selects the colour and font size and ensures
that the font scales as the model is enlarged.
The appearance and disappearance of the charges on the animated
sequence is controlled using
select atomno=4 and model=1.1;label –;
this specifies atom 4 in model(frame) 1 of the sequence and makes it
an anion.
Subsequent commands of this structure then either label other atoms as
required or change the label in later frames.
Thanks for your help sorting this out. Although now we'll have to
incorporate this in all our existing reactions!
All the best
Nick
--
3D Organic Animations http://www.chemtube3d.com
Tel: +44 (0)151-794-3506 (3500 secretary)
On 6 Jun 2008, at 14:16, Angel Herraez wrote:
Hi Nick
Glad you found your solution.
The remaining problem is the length of the code (below). Is there
a way of specifying
set labelOffset 0 0;font label 20 serif bold;color label orange;
once (per page) for ALL labels?
If you don't use any more labels (with different specs), I'd say you
can at the beginning say
select all
and then put your label script. That will set the parameters for all
labels, which will be added (i.e. shown) subsequently later.
·
Dr. Angel Herraez
Dep. Bioquimica y Biologia Molecular, Universidad de Alcala
E-28871 Alcala de Henares (Madrid), Spain
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users