Re: [PyMOL] alter resi from command line

2009-03-18 Thread Tsjerk Wassenaar
Hi Magnus, The command is 'alter', not 'alter resi' or 'alter_resi'. The function is therefore 'cmd.alter()', which takes as first argument a selection string and as second an operation string (expression). The key aspects to understand are that (most) commands have associated functions cmd.comman

[PyMOL] alter resi from command line

2009-03-18 Thread Magnus Andersson
Hi, I want to alter the secondary structure on a part of my protein. Normally I do: alter resi 225-232, ss='h' show cartoon, protein But if I want to add this in a movie script? I tried: cmd.alter_resi(225-232, ss='h') But that did not work. I looked in the user manual & couldn't find API synt