<div dir="ltr"><div><div><div>Actually nevermind, I think I have it - something like this seems to work:<br><br>~sel; matrixset ~/Desktop/test_matrix.txt; cofr x,y,z coordinatesystem #0; ac mc; centersel; symclip 5<br><br></div>where test_matrix.txt is the rotation matrix from coot view_matrix(), x,y,z are the coords of the rotation center from coot, centersel is anĀ alias that centers the view on the selection, and symclip is an alias that slabs around the cofr.<br><br></div>Cheers,<br></div>Oli.<br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 19, 2016 at 3:01 PM, Oliver Clarke <span dir="ltr"><<a href="mailto:olibclarke@gmail.com" target="_blank">olibclarke@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi all,<br><br></div>I'd like to write a little python function in coot to open the current view with Chimera, because manually replicating in Chimera views that were identified in Coot is a little painful.<br><br></div>The file handling aspects of this seem straightforward - the one aspect I haven't quite got yet is how to set the view in Chimera to match that seen in Coot.<br><br></div><div>I would like to load up all molecules/maps that are displayed in coot, in their default orientations, and then apply the view matrix from coot using matrixset to get the equivalent view.<br></div><div><br></div>Coot outputs a 3X3 rotation matrix which seems to be the same as that generated for an equivalent view by matrixget in Chimera, except that in Chimera the matrix is 3X4, with the last column representing the translation vector. <br><br>This I cannot access directly within coot, but I can probably calculate it if I know what it represents. This is probably a stupid question, but is this simply the vector from the origin to the current center of rotation? Or is it something else?<br><br></div>Cheers,<br></div>Oliver.<br></div>
</blockquote></div><br></div></div></div></div></div></div>