atomSets does not match

User 1494e93569

10-07-2007 14:29:51

Atom definition with atomSet is in agreement with atom numbers in mview display, however atomSetColor does not match. For example, this code should color in red the right atoms in the display, but some atoms are wrong (see attached image)





mview_param("atomSetColor1", "#ff0000")


mview_param("atomSet0.1", "5,6,7,8,9,10,11,12,13,14,15,16");





Any idea?

ChemAxon e500b51457

11-07-2007 20:52:10

Hi,





Atom definitions in atom sets are given with comma separated list of atom indices in a range of 0, ..., n-1 if you have n atoms.


(See MarvinView: parameters and events, http://www.chemaxon.com/marvin/doc/dev/viewman.html)


Practically, if you would like to color atoms given with atom indices "5,6,7,8,9,10,11,12,13,14,15,16" in mview display you should use mview_param("atomSet0.1", "4,5,6,7,8,9,10,11,12,13,14,15").


I hope this helps.





Best Regards,


Erika