Python: Store all border edges?

Hi everyone,

I was wondering by the question from the title, how can I query all border edges of a mesh in python?

Kind regards,
Tristan

Import pymel.core as pm
myBorderEdges = pm.polySelect(edge order = True)

Doesn’t select all the borders. I found a way around like this:

    info = cmds.polyEvaluate(self.mesh, e=True)
    borders = []
    for i in range(info):
        myBorder = cmds.polySelect(self.mesh, eb=i, ns=True, ass=True)
        if myBorder != None and myBorder not in borders:
            borders.append(myBorder)

This topic was automatically closed after 95 days. New replies are no longer allowed.