Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm building a maya retopology tool and i'm trying to get a viewport look similar to quad draw.
What i want specifically is the same visual result quad draw has where the wireframe overlay is above the material.
Since my retopologised mesh occupies nearly the same space as the source mesh, i had to use "alwaysDrawOnTop" with a semi transparent material. The problem is it brings the shading of the object over the wireframe rendering it useless. Is there a way to force wireframe to render on top of the object's shading without enabling wireframe on shaded globally? and maybe control thickness also?
import maya.cmds as cmds
selection = cmds.ls(selection=True)
for ctrl in selection:
shape = cmds.listRelatives(ctrl, shapes=True)
if shape:
for shp in shape:
cmds.setAttr("{0}.alwaysDrawOnTop".format(shp), True)Solved! Go to Solution.