On Dec 10, 2020, at 10:29 PM, Yong Liu <liuyongbox@gmail.com> wrote:

Hi All,
I would like to save the image of each chain in one command. I have wrote following python code, but it is not working. Is anybody know how to fix it?


# save the image of each chain

def batchSave(session):
chainID_list = info chains
for x in chainID_list:

chainID = chainID_list.split()

ID = chainID[-1]

save "Desktop/ID.png" width 4000 height 4000 transparentBackground true


def register_command(session):
 from chimerax.core.commands import CmdDesc, register
 desc = CmdDesc()
 register('batchSave', desc, batchSave, logger=session.logger)

register_command(session)

Best,
Yong Liu
_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.edu
Manage subscription:
https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users