Rasmolify
Jump to navigation
Jump to search
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.
## 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)