Apply the PyMOL cartoon style and colour by secondary structure.
This applies the PyMOL cartoon style which is equivalent to hiding everything and clicking on show cartoon. It also colours the cartoon with red helices, yellow strands, and green loops. The following commands are executed:
cmd.hide(`everything', file) |
cmd.show(`cartoon', file) |
util.cbss(file, `red', `yellow', `green') |
where file is the file name without the `.pdb' extension.
To apply this user function, type:
[numbers=none] relax> pymol.cartoon()