Hi guys, I was making a script that´d delete components replicating Max's behaviour, like when you hit delete on a vertex\edge, it´ll convert that selection to face mode and then delete it.
<div>cmds.select(cmds.polyListComponentConversion(tf = True))
</div><div>faces = cmds.filterExpand(sm=34)
</div><div>if cmds.filterExpand(sm=34):
</div><div> cmds.polyDelFacet(faces)</div>
It works! But now I wanted to add a clause or something that´d say "If there are no components selected...just use the regular delete command" or sth like that. (like for deleting objects, or any other type of element that are not vertex/edge/faces).
Does anyone now a simple manner to do this?
Replies