Re: [PyMOL] preset.ligand_cartoon in pymolrc

2012-07-11 Thread Jason Vertrees
Thomas, another nice solution. John, I suggest passing an object name, however, or your new load command will preset every object not just the one you loaded. Cheers, -- Jason On Wed, Jul 11, 2012 at 4:22 PM, John Amraph wrote: > Thank you, Thomas. > > Putting code below to python script and a

Re: [PyMOL] preset.ligand_cartoon in pymolrc

2012-07-11 Thread Thomas Holder
Or overload the cmd.load function: python from pymol import cmd, preset load_orig = cmd.load def load_new(*args, **kwargs): load_orig(*args, **kwargs) preset.ligand_cartoon('all') cmd.load = load_new python end Cheers, Thomas Jason Vertrees wrote, On 07/11/12 22:06: > John, > > Put

Re: [PyMOL] preset.ligand_cartoon in pymolrc

2012-07-11 Thread John Amraph
Thank you, Thomas. Putting code below to python script and adding run script.py to pymolrc have helped! *from pymol import cmd, preset load_orig = cmd.load def load_new(*args, **kwargs): load_orig(*args, **kwargs) preset.ligand_cartoon('all') cmd.load = load_new* On Wed, Jul 11, 2012 at

Re: [PyMOL] preset.ligand_cartoon in pymolrc

2012-07-11 Thread Jason Vertrees
John, Put this in your ~/.pymolrc: import pymol def my_load(file,obj): cmd.load(file,obj) preset.ligand_cartoon(obj) cmd.extend("my_load", my_load) Then you can load files as, my_load /path/to/file, object_name Cheers, -- Jason On Wed, Jul 11, 2012 at 12:48 PM, John Amraph wrot

Re: [PyMOL] displaying cartoon helix and sheet in multiple identical chains

2012-07-11 Thread Sampson, Jared
Hi Hena - If you're not seeing the effects of the "alter" statement, try issuing the command "rebuild" afterward and see if that helps. Jared -- Jared Sampson Xiangpeng Kong Lab NYU Langone Medical Center 550 First Ave MSB 398 New York, NY 10016 212-263-7898 http://kong.med.nyu.edu/ On Jul 10,

[PyMOL] preset.ligand_cartoon in pymolrc

2012-07-11 Thread John Amraph
Dear collegues, I need your help in following question. I want to visualize pdb in the * preset.ligand_cartoon("all",_self=cmd)* mode when Pymol is opening the pdb file. I tried several options: - include preset.ligand_cartoon("all",_self=cmd) in *pymolrc* - making a pymol script(from pymol