Hi Robert
Thanks, in principle yes it's doing it now the way i was hoping. As I
wrote, the point was to be able to enter the command at the pymol prompt
like:
zoom_custom resi 117
and not
zoom_custom(117)
--> So to avoid the parenthesis (user friendliness and stuff...)
Thanks again
Hi Martin,
If you simply want to be able to have the function operate on any
selection, simply do this:
def zoom_custom(position):
cmd.zoom(position)
cmd.extend("zoom_custom", zoom_custom)
This allows you to type:
zoom_custom resi 117
or any other more complicated selection syntax without