Hi Riccardo,

cartoon_side_chain_helper has been implemented as an atom level setting only in 
the latest Incentive version of PyMOL (1.7.0.0 Incentive PyMOL).

Cheers,
  Thomas

On 20 Mar 2014, at 12:05, Riccardo <mitm...@gmail.com> wrote:
> Hello to PyMOL mailing list.
> 
> I'm writing a python script using PyMOL as module.
> 
> I want to set "cartoon_side_chain_helpe = on" globally and, only for residues 
> inside a list (chosen_residues_replacement_list), I want to set 
> "cartoon_side_chain_helpe = off".
> 
> For this purpuse, I'm trying to use "unset" in this way:
> 
> ## Choice:
> chosen_residues = "316+317+319";
> 
> ## Task:
> chosen_residues_replacement = chosen_residues.replace("+", " ");
> chosen_residues_replacement_list = chosen_residues_replacement.split();
> if not chosen_residues_replacement_list:
>     print("Empty list!");
> else:
>     residues = "resi {}".format(chosen_residues);
>     cmd.select("residues", residues, enable=1);
>     cmd.select("everything_else","(not residues)", enable=1); # invert 
> "residues" selection
>     cmd.set("cartoon_side_chain_helper", "on");
>     cmd.unset("cartoon_side_chain_helper","residues");
> 
> but in this way I can't see "cartoon_side_chain_helper = off" for residues in 
> "chosen_residues".
> 
> Thanks a lot,
> Riccardo Volpe

-- 
Thomas Holder
PyMOL Developer
Schrödinger, Inc.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
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