def ribType(tag): try: glb.populate() if tag == 'Skip': cmd.cartoon('skip', glb.SELE) elif tag == 'Automatic': cmd.cartoon('automatic', glb.SELE) elif tag == 'Oval': cmd.cartoon('oval', glb.SELE) elif tag == 'Tube': cmd.cartoon('tube', glb.SELE) elif tag == 'Rectangle': cmd.cartoon('rectangle', glb.SELE) elif tag == 'Loop': cmd.cartoon('loop', glb.SELE) elif tag == 'Arrow': cmd.cartoon('arrow', glb.SELE) elif tag == 'Dumbbell': cmd.cartoon('dumbbell', glb.SELE) elif tag == 'Putty': cmd.cartoon('putty', glb.SELE) except: showinfo( 'Error', 'Drop down menu is set to an invalid selection\n' + 'You may need to update selections')
def ribType(tag): try: glb.populate() if tag == 'Skip': cmd.cartoon('skip', glb.SELE) elif tag == 'Automatic': cmd.cartoon('automatic', glb.SELE) elif tag == 'Oval': cmd.cartoon('oval', glb.SELE) elif tag == 'Tube': cmd.cartoon('tube', glb.SELE) elif tag == 'Rectangle': cmd.cartoon('rectangle', glb.SELE) elif tag == 'Loop': cmd.cartoon('loop', glb.SELE) elif tag == 'Arrow': cmd.cartoon('arrow', glb.SELE) elif tag == 'Dumbbell': cmd.cartoon('dumbbell', glb.SELE) elif tag == 'Putty': cmd.cartoon('putty', glb.SELE) except: showinfo('Error', 'Drop down menu is set to an invalid selection\n'+ 'You may need to update selections')
def cartoon_tube_radius(): glb.populate() value = glb.GUI.view['toonTubeRadius'].get() cmd.set('cartoon_tube_radius', value, glb.SELE) # strands
def cartoon_transparency(): glb.populate() amount = glb.GUI.view['cartoonTransparency'].get() cmd.set('cartoon_transparency', amount, glb.SELE)
def cartoon_width(): glb.populate() value = glb.GUI.view['toonWidth'].get() cmd.set('cartoon_rect_length', value, glb.SELE) # strands cmd.set('cartoon_oval_length', value, glb.SELE) # helices
def cartoon_thickness(): glb.populate() value = glb.GUI.view['toonThickness'].get() cmd.set('cartoon_rect_width', value, glb.SELE) # strands cmd.set('cartoon_oval_width', value, glb.SELE) # helices
def stickRad(): glb.populate() size = glb.GUI.view['stickRadius'].get() cmd.set('stick_radius', size, glb.SELE)
def sphereSize(): glb.populate() size = glb.GUI.view['sphereScale'].get() cmd.set('sphere_scale', size, glb.SELE)
def surface_transparency(): glb.populate() amount = glb.GUI.view['surfaceTransparency'].get() cmd.set('transparency', amount, glb.SELE)
def stick_transparency(): glb.populate() amount = glb.GUI.view['stickTransparency'].get() cmd.set('stick_transparency', amount, glb.SELE)
def sphere_transparency(): glb.populate() amount = glb.GUI.view['sphereTransparency'].get() cmd.set('sphere_transparency', amount, glb.SELE)