<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Gunnar,<div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>The setattr command can't do this. It would not be <i class="">too</i> hard to add it to setattr, but it doesn't seem to be something anyone would commonly want to do, though I'm willing to listen to arguments otherwise.</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>This is pretty easy to do in ChimeraX's Python shell though (Tools→General→Shell). The following code (typed/pasted) to the shell would set all selected atoms' coordinates to 1,2,3:</div><div class=""><br class=""></div><div class="">from chimerax.atomic import selected_atoms as sel_atoms<br class=""><br class="">for a in sel_atoms(session):<br class=""> a.coord = (1, 2, 3)<br class=""><div><br class=""></div><div>If you're not familiar with Python, indentation is significant, so that last line needs to be indented as shown.</div><div><br class=""></div><div><div>--Eric</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Eric Pettersen</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>UCSF Computer Graphics Lab</div></div><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 23, 2020, at 12:52 AM, Jeschke Gunnar <<a href="mailto:gunnar.jeschke@phys.chem.ethz.ch" class="">gunnar.jeschke@phys.chem.ethz.ch</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi all,<br class=""><br class="">is there a way to set atom coordinates by a command?<br class=""><br class="">setattr spec atoms coord value<br class=""><br class="">appears to accept only one double argument and sets x, y, and z to this number. Neither space-separated nor comma-separate lists of three values appear to work.<br class=""><br class="">Kind regards<br class=""><br class="">Gunnar <br class=""><br class="">---<br class=""><br class="">Prof. Dr. Gunnar Jeschke<br class="">ETH Zurich<br class="">Department of Chemistry and Applied Biosciences<br class="">Vladimir-Prelog-Weg 2<br class="">CH-8093 Zurich Switzerland<br class=""><br class=""><a href="http://www.epr.ethz.ch" class="">www.epr.ethz.ch</a><br class="">_______________________________________________<br class="">ChimeraX-users mailing list<br class="">ChimeraX-users@cgl.ucsf.edu<br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""></div></div></blockquote></div><br class=""></div></body></html>