Re: [PyMOL] reset TTT matrix to identity

2023-06-02 Thread Philip Kiser
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  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
>> 
>> Unsubscribe:
>> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe
>> 
>
>
>
> --
>
> *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

Re: [PyMOL] reset TTT matrix to identity

2023-06-02 Thread Jarrett Johnson
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  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  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
>>> 
>>> Unsubscribe:
>>> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe
>>> 
>>
>>
>>
>> --
>>
>> *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

Re: [PyMOL] reset TTT matrix to identity

2023-06-02 Thread Jarrett Johnson
Hi Philip,

Have you tried the `matrix_reset` command instead?

Best
Jarrett J.

On Fri, Jun 2, 2023 at 3:46 PM Philip Kiser  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
> Unsubscribe:
> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe



-- 

*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