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) jason.vertr...@schrodinger.com
(o) +1 (603) 374-7120

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to