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