presets, python and printing

Hello everyone, My colleague and I are planning to incorporate 3D physical models into the introductory biochemistry course at our university, and I want students to use Chimera in the design of models. I've seen the technotes on 3D models made by the uPrint printer ( http://www.cgl.ucsf.edu/Outreach/technotes/uprint.html). We'll hopefully be collaborating with the folks at MSOE on this, using their Z-corporation printer. They use RasMol to design models, but the file read by the printer is in .stl format. Here are my questions: 1) Has anyone used Chimera to create models to be printed on a Z-corp printer? (if yes, I'll have many more questions for you...) 2) Is it possible to define a user preset in Chimera with Python? I know this isn't currently possible with chimera commands, and I am *just* getting into Python now. Because students have difficulty jumping in to a project like this if they first have to learn to enter commands at a prompt, I want to make some presets that apply settings compatible with a 3D model; bond thickness, colors, etc. 3)If one knew Python, would it be possible to design a simplified user interface for Chimera? Even as simple as a pop-up window that contained the key features I want students to have access to right away? 4) Probably the biggest drawback to using Chimera with undergrads is the lack of an "Undo" button. I'm guessing this is extremely difficult to implement because of all 3rd party extensions incorporated into Chimera? What about an option to autosave every five or ten minutes? Thanks Dan -- ____________________________ Daniel Gurnon, Ph. D. Assistant Professor of Chemistry DePauw University Greencastle, IN 46135 p: 765-658-6279 e: danielgurnon@depauw.edu

Hi Daniel, I'll partly address your question #2, user presets, and leave the other questions for others to address. I don't know python, but something very similar can be done with the alias command. You can create rather elaborate "action" (start-of- line) aliases, and the alias definition can include several Chimera commands concatenated with semicolons. In Chimera 1.5, such aliases will then be listed in an Aliases menu in Chimera, and you only need to choose from the menu to execute them. For example (this should be all one line although the annoying mail program will probably break it up): alias ^preset_nuc set bg_color tan;set subdivision 2;~set silhouette;nuc side fill orient false;nuc ndbcolor <http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/alias.html> You could supply students with a Chimera command file setting up several of these aliases. They would only need to open the file once to set up all the aliases, since they are saved in the preferences file. Or, if there is some kind of computer lab where you have control over the installation, you could set this up yourself beforehand. Example files to test the above alias: 1ehz (RNA), 1d86 (DNA) You would probably want to include explicit background color, silhouette and subdivision settings as in the above example, since the publication presets may set these to values that are not optimal for interactive use. Limitations to this approach: (A) requires Chimera version 1.5 (daily build) if you want the Aliases menu; in older versions, the alias can still be used, but just as a command (B) can only incorporate things that can be done with Chimera commands (although we have been steadily improving on this front -- see especially "set" and "setattr" for global settings and model/residue/ atom attribute settings, respectively. A good way to adjust stick thickness is by changing the model attribute stickScale, e.g.: setattr m stickScale 0.5 ) <http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/set.html> <http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/setattr.html> I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab Department of Pharmaceutical Chemistry University of California, San Francisco On May 9, 2010, at 7:51 AM, Daniel Gurnon wrote:
Hello everyone, My colleague and I are planning to incorporate 3D physical models into the introductory biochemistry course at our university, and I want students to use Chimera in the design of models. I've seen the technotes on 3D models made by the uPrint printer (http://www.cgl.ucsf.edu/Outreach/technotes/uprint.html ). We'll hopefully be collaborating with the folks at MSOE on this, using their Z-corporation printer. They use RasMol to design models, but the file read by the printer is in .stl format.
Here are my questions: 1) Has anyone used Chimera to create models to be printed on a Z- corp printer? (if yes, I'll have many more questions for you...)
2) Is it possible to define a user preset in Chimera with Python? I know this isn't currently possible with chimera commands, and I am *just* getting into Python now. Because students have difficulty jumping in to a project like this if they first have to learn to enter commands at a prompt, I want to make some presets that apply settings compatible with a 3D model; bond thickness, colors, etc.
3)If one knew Python, would it be possible to design a simplified user interface for Chimera? Even as simple as a pop-up window that contained the key features I want students to have access to right away?
4) Probably the biggest drawback to using Chimera with undergrads is the lack of an "Undo" button. I'm guessing this is extremely difficult to implement because of all 3rd party extensions incorporated into Chimera? What about an option to autosave every five or ten minutes?
Thanks Dan

Hi Dan, I don't know if anyone has used Chimera for export to a Z-corp printer. The part I'd wonder about is how the color information is encoded. STL format does not include color info, although there are some hacks to the format that provide it http://en.wikipedia.org/wiki/STL_%28file_format%29#Colour_in_Binary_STL Chimera does not support color in STL currently. It would be pretty easy to make some kinds of customizations to the Chimera interface. For instance all, the current menus could easily be eliminated and one new menu added with just the 6 things you want to provide access to (open, save, quit, color, ...). This would be done by commenting out various lines in chimera/share/chimera/tkgui.py where those menus are placed in the menu-bar (on Mac the file is Chimera.app/Contents/Resources/share/chimera/tkgui.py) and adding your own menu. Yeah, a general undo has to be designed into the software from the beginning. Chimera has some specialized undo capabilities (undo motion, undo selection). If you know the steps in your work-flow where undo is really important it may be possible to add that kind of special undo. Auto-save is not available but would be pretty easy -- but may be annoying as a session save could take 10 seconds depending on data size. Tom
Hello everyone, My colleague and I are planning to incorporate 3D physical models into the introductory biochemistry course at our university, and I want students to use Chimera in the design of models. I've seen the technotes on 3D models made by the uPrint printer (http://www.cgl.ucsf.edu/Outreach/technotes/uprint.html). We'll hopefully be collaborating with the folks at MSOE on this, using their Z-corporation printer. They use RasMol to design models, but the file read by the printer is in .stl format.
Here are my questions: 1) Has anyone used Chimera to create models to be printed on a Z-corp printer? (if yes, I'll have many more questions for you...)
2) Is it possible to define a user preset in Chimera with Python? I know this isn't currently possible with chimera commands, and I am *just* getting into Python now. Because students have difficulty jumping in to a project like this if they first have to learn to enter commands at a prompt, I want to make some presets that apply settings compatible with a 3D model; bond thickness, colors, etc.
3)If one knew Python, would it be possible to design a simplified user interface for Chimera? Even as simple as a pop-up window that contained the key features I want students to have access to right away?
4) Probably the biggest drawback to using Chimera with undergrads is the lack of an "Undo" button. I'm guessing this is extremely difficult to implement because of all 3rd party extensions incorporated into Chimera? What about an option to autosave every five or ten minutes?
Thanks Dan
-- ____________________________
Daniel Gurnon, Ph. D. Assistant Professor of Chemistry DePauw University Greencastle, IN 46135
p: 765-658-6279 e: danielgurnon@depauw.edu <mailto:danielgurnon@depauw.edu>
_______________________________________________ Chimera-users mailing list Chimera-users@cgl.ucsf.edu http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users
participants (3)
-
Daniel Gurnon
-
Elaine Meng
-
Thomas Goddard