Ah apologies, I am not sure of the most efficient way to do it, but one could store the TTT matrix, reset the matrix, and transform the object as a selection so that the positions themselves are changed and not the object transform.
Something like PyMOL>mat = cmd.get_object_matrix('1obyA') PyMOL>cmd.matrix_reset('1obyA') PyMOL>cmd.transform_selection('1obyA', mat) comes to mind. On Fri, Jun 2, 2023 at 4:04 PM Philip Kiser <pki...@uci.edu> wrote: > Hi Jarrett, > That command seems to just move the object back to its original position > instead of resetting the matrix values with the object kept in its new > position. > Regards, > Philip > > On Fri, Jun 2, 2023 at 12:56 PM Jarrett Johnson < > jarrett.john...@schrodinger.com> wrote: > >> Hi Philip, >> >> Have you tried the `matrix_reset` command instead? >> >> Best >> Jarrett J. >> >> On Fri, Jun 2, 2023 at 3:46 PM Philip Kiser <pki...@uci.edu> wrote: >> >>> Hi Everyone, >>> Is there a way to set an object TTT matrix to the identity after >>> performing a transformation (e.g. superposition)? I want to leave the >>> object in its new position and just reset the matrix so the new position >>> has an identity TTT matrix. From the PyMOL wiki, it seems "reset" should be >>> the right command, but it is not working in my hands. Thank you for any >>> tips you can provide. >>> Regards, >>> Philip >>> _______________________________________________ >>> PyMOL-users mailing list >>> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net >>> <https://urldefense.com/v3/__http://www.mail-archive.com/pymol-users@lists.sourceforge.net__;!!CzAuKJ42GuquVTTmVmPViYEvSg!I8vAXv2W562ZF7bJqLlWlKsmMv-JVak8dAiGK6zvjBHEdcQgqh4ZWi1vaB-cp_AfzNAfc5X4d6JXJOu_JxTn9K-DbDD8$> >>> Unsubscribe: >>> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe >>> <https://urldefense.com/v3/__https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe__;!!CzAuKJ42GuquVTTmVmPViYEvSg!I8vAXv2W562ZF7bJqLlWlKsmMv-JVak8dAiGK6zvjBHEdcQgqh4ZWi1vaB-cp_AfzNAfc5X4d6JXJOu_JxTn9Mz1uKrY$> >> >> >> >> -- >> >> *Jarrett Johnson* | Senior Developer, PyMOL >> >> -- *Jarrett Johnson* | Senior Developer, PyMOL
_______________________________________________ PyMOL-users mailing list Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe