This is a read-only mirror of pymolwiki.org
Difference between revisions of "Rasmolify"
Jump to navigation
Jump to search
(rasmolify your life) |
|||
Line 1: | Line 1: | ||
− | |||
Here it is! Long awaited, less tested; | Here it is! Long awaited, less tested; | ||
Line 12: | Line 11: | ||
## Check if a 'current' selection exists, and perform the action on | ## Check if a 'current' selection exists, and perform the action on | ||
## that selection. Make 'off' proper. Add units to the commands that | ## that selection. Make 'off' proper. Add units to the commands that | ||
− | ## take them. | + | ## take them. Turn off the virtual_trackball. Fix the mouse behaviour. |
## spacefill | ## spacefill |
Revision as of 13:34, 20 February 2008
Here it is! Long awaited, less tested;
## This is just a quick hack. For something more meaty see;
## http://arcib.dowling.edu/sbevsl/
## Version 0.0.00-000/0
## TODO:
## Check if a 'current' selection exists, and perform the action on
## that selection. Make 'off' proper. Add units to the commands that
## take them. Turn off the virtual_trackball. Fix the mouse behaviour.
## spacefill
def spacefill(toggle=1):
if(toggle==1):
cmd.show("spheres")
else:
cmd.hide("spheres")
cmd.extend("spacefill", spacefill)
## cartoon
def cartoon(toggle=1):
if(toggle==1):
cmd.show("cartoon")
else:
cmd.hide("cartoon")
cmd.extend("cartoon", cartoon)
## wireframe
def wireframe(toggle=1):
if(toggle==1):
cmd.show("lines")
else:
cmd.hide("lines")
cmd.extend("wireframe", wireframe)
## exit
def exit():
cmd.quit()
cmd.extend("exit", exit)