[Chimera-users] session file/HID
goddard at sonic.net
Tue Feb 19 08:56:26 PST 2013
I can send you a bit of Python code for a keyboard shortcut that does savepos using a name pN where N is the next available integer. If you want to save some state in session files better to make a separate Chimera extension instead of modifying standard_accelerators.py. I can provide an example of that. What state do you want to save? With the above method of choosing the next available savepos name you don't need to save in sessions the last N used since it can be figured out from the existing savepos names which are already saved in sessions. I'll try to post the example late today, taking cat to vet this morning.
On Feb 17, 2013, at 10:16 PM, "Dougherty, Matthew T" wrote:
> I am developing some USB HID midware code utilizing keyboard shortcuts.
> This is being done using controllermate to generate an organized system of text strings across devices, and corresponding additions in standard_accelerators.py
> One thing I need to write is an automated method that will increment keyframe names to be used for savepos.
> On a more general level, how do I create variables in standard_accelerators.py that willbe saved in the session file, so I can retrieve them at a later session?
> Matthew Dougherty
> National Center for Macromolecular Imaging
> Baylor College of Medicine
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
More information about the Chimera-users