[chimerax-users] Assistance: ChimeraX save scene

Guillaume Gaullier guillaume at gaullier.org
Mon Oct 12 10:56:21 PDT 2020


I found that the most reliable way to achieve this is to script the entire thing. It can be a lot of work (both for you to come up with the script, and for the computer to regenerate the final states from the script every time you need these states), depending on the contents of your scene, but it is more reliable than saving a session and trying to manually restore a state you want. And a script is easier to adapt to a different use case than a session, so in the end you’re actually saving your future self all that time and effort.

Guillaume


> On 12 Oct 2020, at 17:22, Elaine Meng <meng at cgl.ucsf.edu> wrote:
> 
> Hi Priyanka,
> Guillame is right about saving and restoring positions, which is now done with the "view" command. 
> 
> However, if you mean the scenes that also include colors, styles, display, etc. in addition to the positions:  sorry no, ChimeraX does not yet have saving scenes.  This is mentioned in the "Missing Features" section of the ChimeraX download page.
> 
> I hope this helps,
> Elaine
> -----
> Elaine C. Meng, Ph.D.                       
> UCSF Chimera(X) team
> Department of Pharmaceutical Chemistry
> University of California, San Francisco
> 
>> On Oct 12, 2020, at 12:41 AM, Guillaume Gaullier <guillaume at gaullier.org> wrote:
>> 
>> Hi Priyanka,
>> 
>> If what you need is a command that can restore the camera’s position to a previously saved state after you moved it, then this should be helpful:
>> 
>> 1. set the scene the way you want it
>> 2. run command "view name myview" ("myview" can be any name); what this does is assign a name to the current view (camera settings)
>> 3. rotate or translate, move around, etc.
>> 4. run command "view myview", which should reset the camera settings to what they were when you did step 2 above
>> 
>> I believe named views are saved with the session, so you should be able to use them even after you save and close, then reopen your .cxs file.
>> 
>> You will find more details in the documentation, with command "help view". Also here: https://www.rbvi.ucsf.edu/chimerax/docs/user/commands/view.html#name
>> 
>> I hope this helps,
>> 
>> Guillaume
>> 
>> 
>>> On 11 Oct 2020, at 22:10, Priyanka Abeyrathne <pabeyrat at gmail.com> wrote:
>>> 
>>> Hi All,
>>> 
>>> Is there a save scene command in ChimeraX?
>>> 
>>> Thanks,
>>> Priyanka
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20201012/adf3fb64/attachment.html>


More information about the ChimeraX-users mailing list