This is a read-only mirror of pymolwiki.org
Difference between revisions of "Rasmolify"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
== Usage == | == Usage == | ||
Think 'rasmol' | Think 'rasmol' | ||
+ | |||
+ | == Related == | ||
+ | * http://arcib.dowling.edu/sbevsl/ | ||
+ | |||
+ | == TODO == | ||
+ | * Implement 'scaling' units for display functions | ||
+ | * Fix the mouse behaviour? | ||
+ | * Add a rasmol GUI! | ||
== Code == | == Code == |
Revision as of 13:49, 22 February 2008
Here it is! Long awaited, less tested;
Install
- Linux
- In your ~/.pymolrc set something like the following
run ~/pymolscripts/rasmolify.py
Finally, make a directory called ~/pymolscripts and copy the code below into a file called rasmolify.py - That should do the trick. You may also like to add a line that readsset virtual_trackball, off
in your ~/.pymolrc
- Windows
- ???
Usage
Think 'rasmol'
Related
TODO
- Implement 'scaling' units for display functions
- Fix the mouse behaviour?
- Add a rasmol GUI!
Code
## This is just a quick hack. For something more meaty see;
## http://arcib.dowling.edu/sbevsl/
## Version 0.0.00-000/1
## Turn off the virtual_trackball
cmd.set("virtual_trackball", "off")
## spacefill
def spacefill(p1=''):
if(p1=='off'):
cmd.hide("spheres")
elif(p1==''):
cmd.show("spheres")
else:
print("feh!")
cmd.extend("spacefill", spacefill)
## cartoon
def cartoon(p1=''):
if(p1=='off'):
cmd.hide("cartoon")
elif(p1==''):
cmd.show("cartoon")
else:
print("feh!")
cmd.extend("cartoon", cartoon)
## wireframe
def wireframe(p1=''):
if(p1=='off'):
cmd.hide("lines")
elif(p1==''):
cmd.show("lines")
else:
print("feh!")
cmd.extend("wireframe", wireframe)
## exit
def exit():
cmd.quit()
cmd.extend("exit", exit)