From: Jonathan G. <jon...@st...> - 2013-11-26 13:40:17
|
many thanks jason…..worked a treat….. j. Dr. Jonathan M. Grimes, NDM Senior Reseach Fellow University Research Lecturer DIAMOND Research Fellow Division of Structural Biology Wellcome Trust Centre for Human Genetics University of Oxford Roosevelt Drive, Oxford OX3 7BN, UK Email: Jon...@st..., Web: www.strubi.ox.ac.uk Tel: (+44) - 1865 - 287561, FAX: (+44) - 1865 - 287547 On 25 Nov 2013, at 14:29, Jason Vertrees <jas...@sc...> wrote: > Jon, > > You can also iterate over a selection and show the color index for each color > > iterate *, color > > You can then color by those indices, eg: > > color 26 > > Cheers, > > -- Jason > > > On Mon, Nov 25, 2013 at 5:42 AM, Jonathan Grimes <jon...@st...> wrote: > > dear all, > > i am having implementing these instructions. > > i would like to work out what color an object is…… > > how is this defined ….. > > > s["names"][1][5][0][1] > > > > equals your object name. > > if I have an object called A1…i am unsure how to > make A1 equal to s["names"][1][5][0][1] > > > many thanks > > jon > > > Dr. Jonathan M. Grimes, > NDM Senior Reseach Fellow > University Research Lecturer > DIAMOND Research Fellow > > Division of Structural Biology > Wellcome Trust Centre for Human Genetics > University of Oxford > Roosevelt Drive, > Oxford OX3 7BN, UK > > Email: Jon...@st..., Web: www.strubi.ox.ac.uk > Tel: (+44) - 1865 - 287561, FAX: (+44) - 1865 - 287547 > > On 12 Dec 2012, at 17:24, Jason Vertrees <jas...@sc...> wrote: > > > Hi Jon, > > > >> ive been given a pse file.....and i am trying to work out what color > >> an object is...... > >> > >> i used the command > >> > >> get cartoon_color, pT_A > >> > >> and got back.... > >> > >> get: cartoon_color = default in object pT_A > > > > You're right, that's not very helpful. This will get you the answer, > > but it's not very straightforward: > > > > s = cmd.get_session() > > > > print cmd.get_color_tuple(s["names"][1][5][0][2]) > > > > To make sure you have right object ensure that, > > > > s["names"][1][5][0][1] > > > > equals your object name. > > > > Cheers, > > > > -- Jason > > > > -- > > Jason Vertrees, PhD > > Director of Core Modeling Product Management > > Schrödinger, Inc. > > > > (e) Jas...@sc... > > (o) +1 (603) 374-7120 > > > > > -- > Jason Vertrees, PhD > Director of Core Modeling Products > Schrödinger, Inc. > > (e) Jas...@sc... > (o) +1 (603) 374-7120 |