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
In
MeshManager.pyneed to add a button that toggles if thecmds.select(clear=True)command runs within therenderMeshPreviewfunction. The TODO is as follows:The button can be added using a Widget and global variable within
Prim.py