<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 Othman,<div class=""><br class=""></div><div class="">  I made some example ChimeraX Python that defines a pymolview command in ChimeraX to set the camera view to match PyMol using the 18 parameters PyMol reports with its cmd.get_view() function.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="https://rbvi.github.io/chimerax-recipes/pymol_view/pymol_view.html" class="">https://rbvi.github.io/chimerax-recipes/pymol_view/pymol_view.html</a></div><div class=""><br class=""></div><div class="">  Tom</div><div class=""><br class=""></div><div class=""><img apple-inline="yes" id="8EB4721C-AA3B-496D-B985-625C72E447F8" width="836" height="371" src="cid:E3156528-6E2A-4F0E-9B8F-FEF82D05AA85" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 24, 2022, at 12:53 PM, Rechiche, Othman <<a href="mailto:othman.rechiche@psu.edu" class="">othman.rechiche@psu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Thank you Tom and Elaine for your replies.<br class="">Best Regards,<br class="">Othman <br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jun 23, 2022, at 9:31 PM, Tom Goddard <<a href="mailto:goddard@sonic.net" class="">goddard@sonic.net</a>> wrote:<br class=""><br class="">Hi Othman,<br class=""><br class="">The PyMol cmd.set_view() function<br class=""><br class="">  <a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpymolwiki.org%2Findex.php%2FSet_View&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=qOZbsBH1oUq1TVoEJyZi01T143gJ0ZCSPBOGNnkjWBo%3D&amp;reserved=0" class="">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpymolwiki.org%2Findex.php%2FSet_View&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=qOZbsBH1oUq1TVoEJyZi01T143gJ0ZCSPBOGNnkjWBo%3D&amp;reserved=0</a><br class=""><br class="">uses a bit different parameters than ChimeraX to specify the camera position for viewing the models.  ChimeraX uses a 3 by 3 rotation matrix about 0,0,0 followed by a translation that maps the camera coordinates to the scene coordinates (12 parameters).  The PyMol documentation says its 3x3 rotation maps model to camera axes.  If model PyMol model coordinates means the same thing as ChimeraX scene coordinates then that rotation is the inverse of what ChimeraX uses.  But the inverse of a rotation matrix is just the transpose so that just rearranges the numbers.  PyMol uses two origins (model rotation center and camera rotation center) and it will take some math to convert that to the single translation ChimeraX uses.  The rotation matrix will need to be applied in a specific way to get the translation ChimeraX needs.  I could guess the conversion equations from the PyMol documentation but it would require testing in both programs to get it right.  PyMol also specifies the clip planes that can be set in ChimeraX with its clip command.  Also the camera field of view will have to match to get the same view.  I don't know how you get that from PyMol.  The camera command in ChimeraX gets and sets horizontal field of view (default 30 degrees).<br class=""><br class="">   Tom<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jun 23, 2022, at 5:27 PM, Elaine Meng via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">Hi Othman,<br class="">Thank you for the clarification!  Maybe I can provide a better answer, then:<br class=""><br class="">ChimeraX can report (or set) model positions with the "view matrix" command.  So if you can output the matrix information from Pymol (with the get_view command shown in the page you sent), then you can use it in ChimeraX with this command.  However, you may need to rearrange the numbers if the matrix format has them in a different order.  For how it is interpreted, see:<br class=""><<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fview.html%23matrix&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2FM0FJ8b9hnwT2rVpR9ohv2m%2B5mDgoBwZIyU%2B1E7t6fg%3D&amp;reserved=0" class="">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fview.html%23matrix&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2FM0FJ8b9hnwT2rVpR9ohv2m%2B5mDgoBwZIyU%2B1E7t6fg%3D&amp;reserved=0</a>><br class=""><br class="">Similarly, Chimera can set model positions with matrices in a file, using Chimera command "matrixset" (as well as write matrices to a file with "matrixget"):<br class=""><<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fmidas%2Fmatrixset.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=lBFhK4nKfhQMkDu12UgQwDRVIrBPPUCygYIdRF7hVMY%3D&amp;reserved=0" class="">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fmidas%2Fmatrixset.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=lBFhK4nKfhQMkDu12UgQwDRVIrBPPUCygYIdRF7hVMY%3D&amp;reserved=0</a>><br class=""><br class="">I hope this helps,<br class="">Elaine<br class="">-----<br class="">Elaine C. Meng, Ph.D.                       <br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""><br class=""><br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">On Jun 23, 2022, at 5:01 PM, Rechiche, Othman via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:<br class=""></blockquote><br class="">Hi Elaine,<br class="">Thank you for your reply.<br class=""><br class="">I want to keep the matrix coordinates from a view (as from <a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpymolwiki.org%2Findex.php%2FSet_View&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=qOZbsBH1oUq1TVoEJyZi01T143gJ0ZCSPBOGNnkjWBo%3D&amp;reserved=0" class="">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpymolwiki.org%2Findex.php%2FSet_View&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=qOZbsBH1oUq1TVoEJyZi01T143gJ0ZCSPBOGNnkjWBo%3D&amp;reserved=0</a>) and use them in ChimeraX. <br class="">Yes views are in a PyMol session.<br class="">ChimeraX displays coordinates in a single line not as matrix.<br class=""><br class="">I will look at the links you sent.<br class=""><br class="">Thank you again.<br class=""><br class="">Best Regards,<br class="">Othman <br class=""><br class=""><blockquote type="cite" class="">On Jun 23, 2022, at 6:33 PM, Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">Of course, one can change the display styles, colors, etc. directly in ChimeraX (or Chimera).  But you are probably asking because you are more familiar with Pymol, or somebody else has given you Pymol sessions.<br class=""><br class="">In case you would like to try setting up the view directly in ChimeraX, there are several example images and associated ChimeraX command scripts (.cxc files):<br class=""><<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimerax%2Fgallery.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2Bs0OLIqIrCTOkEul7TxBrIRlXzAcCK9AGVu4zGypHUU%3D&amp;reserved=0" class="">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimerax%2Fgallery.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2Bs0OLIqIrCTOkEul7TxBrIRlXzAcCK9AGVu4zGypHUU%3D&amp;reserved=0</a>><br class=""><<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimerax%2Ffeatures.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=w65E%2F9GYPxnFUw6V%2BeYxZk3pgI68HrytU1BQwai87Ok%3D&amp;reserved=0" class="">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimerax%2Ffeatures.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=w65E%2F9GYPxnFUw6V%2BeYxZk3pgI68HrytU1BQwai87Ok%3D&amp;reserved=0</a>><br class=""><br class="">...as well as ChimeraX tutorials:<br class=""><<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fframetut.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=l8XpGNu%2FnqYmsFFQyJFBq48tst4xomJmqvrYBfEY4ZA%3D&amp;reserved=0" class="">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Fdocs%2FUsersGuide%2Fframetut.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=l8XpGNu%2FnqYmsFFQyJFBq48tst4xomJmqvrYBfEY4ZA%3D&amp;reserved=0</a>><br class=""><<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimerax%2Ftutorials.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=ouuFJzaqkJ7sl9u8Ap1iEhBXCzvL8nPb%2BGe%2FjPoxGOA%3D&amp;reserved=0" class="">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimerax%2Ftutorials.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=ouuFJzaqkJ7sl9u8Ap1iEhBXCzvL8nPb%2BGe%2FjPoxGOA%3D&amp;reserved=0</a>><br class=""><br class="">There are also many Chimera tutorials:<br class=""><<a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Ftutorials.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2Fdk46%2BAMUYnx0XnpvxFjgl4OG2OSZLmxIFHfy8%2BT1sU%3D&amp;reserved=0" class="">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fchimera%2Ftutorials.html&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2Fdk46%2BAMUYnx0XnpvxFjgl4OG2OSZLmxIFHfy8%2BT1sU%3D&amp;reserved=0</a>><br class=""><br class="">Best,<br class="">Elaine<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jun 23, 2022, at 1:27 PM, Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">Hi Othman,<br class="">Sorry no, Chimera and ChimeraX cannot read Pymol session files.  By  "view" I'm guessing you mean colors, display styles, etc.   If you meant only the orientation of the structure, maybe Pymol has an option to save a PDB file of the currently transformed coordinates, which could then be opened in Chimera or ChimeraX, but that still would not include the exact amount of zoom.<br class=""><br class="">If somebody else has created a converter for Pymol session -> Chimera (or ChimeraX) session, we are not aware of it.<br class=""><br class="">Best Regards,<br class="">Elaine<br class="">-----<br class="">Elaine C. Meng, Ph.D.<br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""><br class=""><blockquote type="cite" class="">On Jun 23, 2022, at 11:27 AM, Rechiche, Othman via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">Hi everyone,<br class="">Is there a way to import/open “views” set with PyMol and open them in Chimera or ChimeraX?<br class="">Best Regards,<br class="">Othman<br class=""></blockquote><br class=""></blockquote><br class=""></blockquote><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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fmailman%2Flistinfo%2Fchimerax-users&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=VSjSJVJkQE8HWpSLnWQOLjLS1lRoeA1ynWOlTMiAGAs%3D&amp;reserved=0<br class=""></blockquote><br class=""><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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fmailman%2Flistinfo%2Fchimerax-users&amp;data=05%7C01%7Cothman.rechiche%40psu.edu%7Ca26282fe7b9345f10e4808da5581317e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637916310627493301%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=VSjSJVJkQE8HWpSLnWQOLjLS1lRoeA1ynWOlTMiAGAs%3D&amp;reserved=0<br class=""><br class=""></blockquote><br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></body></html>