Re: [PyMOL] Passing parameters to pymol aliases

2013-05-16 Thread Spencer Bliven
Thanks, Troels. The import/extend pattern worked for me. Specifically, lines like import color_obj cmd.extend("co",color_obj.color_obj) Thanks! On Thu, May 16, 2013 at 7:38 AM, Troels Emtekær Linnet wrote: > In your .pymolrc, you probably just import the file/module, and then issue > an extend

Re: [PyMOL] Passing parameters to pymol aliases

2013-05-16 Thread Troels Emtekær Linnet
In your .pymolrc, you probably just import the file/module, and then issue an extend command to the module.function with the wanted new shortcut name Den 16/05/2013 01.29 skrev "Spencer Bliven" : > I have a number of python scripts that I use regularly. I would like to > create shortcuts for these

Re: [PyMOL] Passing parameters to pymol aliases

2013-05-16 Thread Troels Emtekær Linnet
How about using import longfilename as sh Then either access with python way sh.func("string",10) Or the name provided in the extend command func string, 10 Following normal conventions seen in python import numpy as np Best Den 16/05/2013 01.29 skrev "Spencer Bliven" : > I have a number of

[PyMOL] Passing parameters to pymol aliases

2013-05-15 Thread Spencer Bliven
I have a number of python scripts that I use regularly. I would like to create shortcuts for these in my .pymolrc. For instance, alias co, color_obj Unfortunately, aliases cannot take arguments (using MacPyMOL 1.3). Is there a way to create aliases for commands that require arguments? I could mod