Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import pymel.core as pm
def meshToCurve():
selectMesh =
for mesh in selectMesh:
grp =,"_Grp")
mesh = mesh.getShape()
faceCount = mesh.numFaces()
for i in range(0,faceCount):
edge = mesh.f[i].getEdges()
for j in edge:
cv = pm.polyToCurve(degree=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment