Its that time again. While working on some models this week I found that I was doing a lot of capping of pipes. So rather than doing this manually I made a tool that does this for me.
So here it is… Simply select a edge loop of a pipe and use this tool.
import maya.cmds as cmds;
capObjects = cmds.ls(sl=True);
cmds.polyExtrudeEdge(capObjects, ls=(.1, .1, 0));
cmds.MergeToCenter(capObjects);