
Hi Pranav, The view matrix command output looks like this
view matrix camera position: 1,0,0,-1.5597,0,1,0,-9.1553e-05,0,0,1,324.03 model positions: #1,1,0,0,0,0,1,0,0,0,0,1,0,#1.1,1,0,0,0,0,1,0,0,0,0,1,0,#2,0.90168,-0.43227,-0.010709,39.384,0.4324,0.90129,0.026728,18.933,-0.0019015,-0.028731,0.99959,-0.075059,#2.1,1,0,0,0,0,1,0,0,0,0,1,0
Then to position the models (and not the camera) you would use command view matrix models #1,1,0,0,0,0,1,0,0,0,0,1,0,#1.1,1,0,0,0,0,1,0,0,0,0,1,0,#2,0.90168,-0.43227,-0.010709,39.384,0.4324,0.90129,0.026728,18.933,-0.0019015,-0.028731,0.99959,-0.075059,#2.1,1,0,0,0,0,1,0,0,0,0,1,0 Do you mean you want the view matrix command to output that command, so a single copy and paste lets you put it in a script? I guess I could change the view matrix output so it looks like
view matrix view matrix camera 1,0,0,-1.5597,0,1,0,-9.1553e-05,0,0,1,324.03 view matrix models #1,1,0,0,0,0,1,0,0,0,0,1,0,#1.1,1,0,0,0,0,1,0,0,0,0,1,0,#2,0.90168,-0.43227,-0.010709,39.384,0.4324,0.90129,0.026728,18.933,-0.0019015,-0.028731,0.99959,-0.075059,#2.1,1,0,0,0,0,1,0,0,0,0,1,0
Is that what you are suggesting? Tom
On Jun 22, 2022, at 9:18 AM, Pranav Shah via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi Team,
I use the view matrix command regularly to save orientation of the maps/models in a command file. As it currently stands, the output needs to be formatted appropriately so that the command can be run. As a one off, it is trivial to format the output from the log window into an appropriate format but, when it has to be done repeatedly as is my case it becomes quite annoying. Therefore, I was wondering if you would agree to format the output so that it can be directly copy pasted in a ready to use format?
Best, Pranav -- Pranav Shah Postdoctoral Research Fellow.
Division of Structural Biology, Wellcome Trust Centre for Human Genetics, University of Oxford, Roosevelt Drive, Oxford OX3 7BN, UK _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users