|
From: Jarrett J. <jar...@sc...> - 2023-06-02 20:22:57
|
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 <pk...@uc...> 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 <
> jar...@sc...> 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 <pk...@uc...> 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/pym...@li...
>>> <https://urldefense.com/v3/__http://www.mail-archive.com/pym...@li....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
|