Carsten,
Hmm...
Unfortunately, the PyMOL command language currently provide any way of
expressing a newline character, so you will need to use the API form of
the scene command. Note that it is perfectly legal to use that form in
a ".pml" file as follows, without an intervening variable:
cmd.scene("new","store","line1\nline2")
Cheers,
Warren
--
Warren L. DeLano, Ph.D.
Principal Scientist
. DeLano Scientific LLC
. 400 Oyster Point Blvd., Suite 213
. South San Francisco, CA 94080 USA
. Biz:(650)-872-0942 Tech:(650)-872-0834
. Fax:(650)-872-0273 Cell:(650)-346-1154
. mailto:[email protected]
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Schubert, Carsten [PRDUS]
> Sent: Friday, August 12, 2005 12:57 PM
> To: [email protected]
> Subject: [PyMOL] Newline character in scene annotation message
>
> Hi
>
> I am trying to combine a scene with annotations spanning
> several lines.
> So far something like
> > scene new, store, message="Line1\nLine2"
>
> would produce some nice coloration effects but not a newline
> character.
>
> I was able to use the api function to do the trick
> >mesg="line1\nline2"
> >cmd.scene("new","store",message=mesg)
>
> but I was wondering is there a way to use the non API
> function in the same way?
>
> Thanks
>
> Carsten
>
>