<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""></div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 10, 2020, at 10:29 PM, Yong Liu <<a href="mailto:liuyongbox@gmail.com" class="">liuyongbox@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi All,<br class="">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?<br class=""><br class=""><br class=""># save the image of each chain<br class=""><br class="">def batchSave(session):<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>chainID_list = info chains <br class="">for x in chainID_list:<br class=""><br class="">chainID = chainID_list.split()<br class=""><br class="">ID = chainID[-1]<br class=""><br class="">save "Desktop/ID.png" width 4000 height 4000 transparentBackground true<br class=""><br class=""><br class="">def register_command(session):<br class=""> from chimerax.core.commands import CmdDesc, register<br class=""> desc = CmdDesc()<br class=""> register('batchSave', desc, batchSave, logger=session.logger)<br class=""><br class="">register_command(session)<br class=""><br class="">Best,<br class="">Yong Liu<br class="">_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>