Esempio n. 1
0
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')
Esempio n. 2
0
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')
Esempio n. 3
0
def cartoon_tube_radius():
    glb.populate()
    value = glb.GUI.view['toonTubeRadius'].get()
    cmd.set('cartoon_tube_radius', value, glb.SELE) # strands
Esempio n. 4
0
def cartoon_transparency():
    glb.populate()
    amount = glb.GUI.view['cartoonTransparency'].get()
    cmd.set('cartoon_transparency', amount, glb.SELE)
Esempio n. 5
0
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
Esempio n. 6
0
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
Esempio n. 7
0
def stickRad():
    glb.populate()
    size = glb.GUI.view['stickRadius'].get()
    cmd.set('stick_radius', size, glb.SELE)
Esempio n. 8
0
def sphereSize():
    glb.populate()
    size = glb.GUI.view['sphereScale'].get()
    cmd.set('sphere_scale', size, glb.SELE)
Esempio n. 9
0
def surface_transparency():
    glb.populate()
    amount = glb.GUI.view['surfaceTransparency'].get()
    cmd.set('transparency', amount, glb.SELE)
Esempio n. 10
0
def cartoon_tube_radius():
    glb.populate()
    value = glb.GUI.view['toonTubeRadius'].get()
    cmd.set('cartoon_tube_radius', value, glb.SELE)  # strands
Esempio n. 11
0
def cartoon_transparency():
    glb.populate()
    amount = glb.GUI.view['cartoonTransparency'].get()
    cmd.set('cartoon_transparency', amount, glb.SELE)
Esempio n. 12
0
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
Esempio n. 13
0
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
Esempio n. 14
0
def stickRad():
    glb.populate()
    size = glb.GUI.view['stickRadius'].get()
    cmd.set('stick_radius', size, glb.SELE)
Esempio n. 15
0
def stick_transparency():
    glb.populate()
    amount = glb.GUI.view['stickTransparency'].get()
    cmd.set('stick_transparency', amount, glb.SELE)
Esempio n. 16
0
def sphere_transparency():
    glb.populate()
    amount = glb.GUI.view['sphereTransparency'].get()
    cmd.set('sphere_transparency', amount, glb.SELE)
Esempio n. 17
0
def sphereSize():
    glb.populate()
    size = glb.GUI.view['sphereScale'].get()
    cmd.set('sphere_scale', size, glb.SELE)