Skip to content

Add button to choose if user wants to use wireframe #18

@Rafapp

Description

@Rafapp

In MeshManager.py need to add a button that toggles if the cmds.select(clear=True) command runs within the renderMeshPreview function. The TODO is as follows:

def renderMeshPreview(name):
     width = 100
     height = 100
     curFrame = int(cmds.currentTime(query=True))
 
     dir_path = os.path.dirname(os.path.realpath(__file__)) + "/../primitives/thumbnails"
     fullPath = dir_path + "/" + name + ".png"
 
     # TODO: Add button to choose if user wants wireframe, which will toggle this de-select
     # cmds.select(clear=True)
     cmds.playblast(fr=curFrame, v=False, fmt="image", c="png", orn=False, cf=fullPath, wh=[width,height], p=100)

The button can be added using a Widget and global variable within Prim.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions