Hi Paweł - Honestly, if you prefer to use matrices, I'd say just go ahead and use get_object_matrix; I doubt it's going away any time soon. You may want to use this in combination with transform_selection<http://www.pymolwiki.org/index.php/Transform_selection>.
Also maybe check out Christoph Gohlke's transformations.py script<http://www.pymolwiki.org/index.php/Transformations>. It offers several tools for manipulating quaternions, matrices, and angle/axis operations. I think there's also a newer version on his website, which is linked from the wiki page. Cheers, Jared -- Jared Sampson Xiangpeng Kong Lab NYU Langone Medical Center http://kong.med.nyu.edu/ On Aug 6, 2015, at 4:04 AM, Paweł Tomaszewski <croov...@gmail.com<mailto:croov...@gmail.com>> wrote: Hello, I've created a CGO in pymol script (a cone) and I need to make some transformations on it. I've found that it is easier for me to modify a TTT matrix rather than using translate/rotate functions. Documentation says [http://www.pymolwiki.org/index.php/Get_object_matrix] get_object_matrix is unsupported operation. So how to get/set TTT? The problem is, that I get (from external source) position in quaternions and now I need to make my CGO position equal to those quaternion. How can I make it work? Thanks Paweł Tomaszewski ------------------------------------------------------------------------------ _______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net<mailto:PyMOL-users@lists.sourceforge.net>) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net ------------------------------------------------------------ This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email. =================================
------------------------------------------------------------------------------
_______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net