Re: [PyMOL] cmd.label, custom labels, script

2006-12-20 Thread DeLano Scientific
label selection, model+"-"+resn+resi _ From: pymol-users-boun...@lists.sourceforge.net [mailto:pymol-users-boun...@lists.sourceforge.net] On Behalf Of Rafael Najmanovich Sent: Tuesday, December 19, 2006 3:04 AM To: pymol-users@lists.sourceforge.net Subject: [PyMOL] cmd.lab

Re: [PyMOL] cmd.label, custom labels, script

2006-12-19 Thread Tsjerk Wassenaar
Hi Rafael, You can use cmd.label(selection,'"objectname-"+resn+resi') Do mind the quotes.., the label string is _eval_uated. Of course, if objn = "objectname", it also works as cmd.label(selection,'objn+"-"+resn+resi') Cheers, Tsjerk On 12/19/06, Rafael Najmanovich wrote: Hi There, Is

[PyMOL] cmd.label, custom labels, script

2006-12-19 Thread Rafael Najmanovich
Hi There, Is there a way to display custom labels from within scripts? I need to display labels which include the object-name - this is not possible using cmd.label it seems. I can define a string as: lab = "%s-%s%s" % (objn,resn,resi) where objn is a variabl