Hi, I'm not entirely sure if I understand what you're trying to do. It seems that you run it to problems when the mesh topology changes, and vertex/edge numbering changes accordingly?
If that's the case, then maybe this document will help you: http://download.autodesk.com/us/maya/2009help/index.html?url=Polygon_API_How_polygons_are_handled_internally.htm,topicNumber=d0e647908 Anyway, for large meshes I would use MFnMesh from the API and it's addPolygon method instead of the polyBridgeEdge-command. Cheers, Risto On Sun, Nov 16, 2014 at 11:48 PM, sam williams <[email protected]> wrote: > Hi there all!, > > im writing a re-topologizing script which is basically bridging and > merging a load of specific edges on a large mesh. I have a long list of all > the separate sets of edges that need merging. The problem is if i want to > modify the code at an earlier stage, or change which edges to merge, it > will throw out all the other edges on the list. Suddenly edge number 47 has > become edge 53 or something. you get me!? > > Also every time i use the command polyBridgeEdge. it selects the edges > that were just bridged. Meaning next time i use the polyBridgeEdge command > it wont execute until i clear the selection. So i have to do a ridiculous > list like this: > > cmds.polyBridgeEdge( 'Mesh.e[155]', 'Mesh.e[823]', divisions=1 ) > cmds.select( clear=True ) > > cmds.polyBridgeEdge( 'Mesh.e[146]', 'Mesh.e[436]', divisions=1 ) > cmds.select( clear=True ) > > cmds.polyBridgeEdge( 'Mesh.e[123]', 'Mesh.e[523]', divisions=1 ) > cmds.select( clear=True ) > > cmds.polyBridgeEdge( 'Mesh.e[123]', 'Mesh.e[522]', divisions=1 ) > cmds.select( clear=True ) > > i was wondering if anyone else has done a script which requires bridging > loads of different edges. Is there a smart way to do this?. Bearing in mind > as i develop and refine my script i am constantly changing which edges i am > bridging and merging. So it makes the development of my script very > tedious, to constantly update the remaining list so that the bridge/merge > edge commands aren't picking the wrong edges. > > > > thanks alot guys!x > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/b2d8fbde-872b-4121-a011-5a2d74bc8d10%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/b2d8fbde-872b-4121-a011-5a2d74bc8d10%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CA%2B5uDBapkQ3Ov1%2BzPdmmsVB0_jrqUm_tTyvKMSRi8Dd3ZHu8Eg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
