For safety & security reasons, it probaby isn't such a good idea to put code into PDB files.
Fortunately, we have something called a .p1m file which provides for the reverse: embedding of PDB and other data files within a script. There are three such examples (embed0X.p1m) in the test/dat folder inside most PyMOL distributions. # example use: embed mypdb1 ATOM ... embed end load_embedded mypdb1 # now put your commands here: as cartoon zoom organic # etc. Cheers, Warren > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf > Of mathieu Coincon > Sent: Thursday, September 13, 2007 10:47 AM > To: [email protected] > Subject: [PyMOL] Keyword in PDB to display a string in the viewer > > Hi, > I would like to know if there is a way to put a keyword in my > pdb file in order to display a string in the viewer. Something like: > > MODEL 1 > REMARK <display_command>="This is model 1" > ATOM ..... > ..... > ATOM..... > ENDMDL > MODEL 2 > REMARK <display_command>="This is model 2" > ATOM ..... > ..... > ATOM..... > ENDMDL > > > In order to display "This is model X" when the model X is displayed. > > (PS: This is just an example, it's not why i ask the question > for as the model number is displayed by default at the bottom left) > > Thanks by advance. > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft Defy all > challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > PyMOL-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pymol-users
