Re: [PyMOL] How to pass a list of selections into pymol script

2013-10-08 Thread Jordan Willis
For some reason David, you have to pass the **kwargs keyword list too. I'm not sure why but this worked for me, python from pymol import cmd, stored, CmdException class Helix(): def __init__(self,selection): self.selection = selection def my_module(*args,**kwargs): helices = [He

Re: [PyMOL] How to pass a list of selections into pymol script

2013-10-08 Thread Jordan Willis
Could you just initialize your helix class with the object at the time of creation? Also why are you passing the superclass object to Helix? > class Helix(): > def __init__(self,selection): > self.selection = selection > > def my_module(*selections): > helices = [Helix(x) for x i