polyBridgeEdge

23 views
Skip to first unread message

e955...@gmail.com

unread,
Feb 25, 2015, 6:55:52 PM2/25/15
to python_in...@googlegroups.com
Hey yo,

im trying to do multiple poly bridge commands over a large mesh. So specific edges need to be bridged with specific other edges.

The problem is i cant seem to just write a long list of seperate polyBridgeEdge command lines because each time the edges that are bridged become selected, making the next polyBridgeEdge command not work. Each time the selection needs to be cleared like this:

cmds.polyBridgeEdge( 'polySurface1.e[530]','polySurface1.e[138]',divisions=0 )
cmds.select( clear=True )
cmds.polyBridgeEdge( 'polySurface1.e[0]','polySurface1.e[5]',divisions=0 )
cmds.select( clear=True )
cmds.polyBridgeEdge( 'polySurface1.e[536]','polySurface1.e[185]',divisions=0 )
cmds.select( clear=True )

does anyone know if there is a way to execute the polyBridgeEdge command without any edges being selected. Removing all the cmds.select commands would really cleanup my script ;)

thanks alot for your help,
Sam

Risto Jankkila

unread,
Feb 27, 2015, 9:47:30 AM2/27/15
to python_in...@googlegroups.com
Hi,

Mesh topology changes when you create new polygons. This changes the vertex ordering, so the whatever edges you had selected before running polyBridgeEdge-command don't exist any more (or at least they have a different name or number).

This document from Autodesk explains how polygons are handled by Maya:

Cheers,
Risto




--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/239bc3d4-0223-4317-b981-8973f9030714%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

e955...@gmail.com

unread,
Feb 28, 2015, 3:01:10 PM2/28/15
to python_in...@googlegroups.com
whether they exist or not, something is still selected. Becuase it wont let you execute another bridge command because it says and uneven number or edges have been selected. the deselect command makes the selection clean. So im guessing i just need it after each bridge command,

Sam
Reply all
Reply to author
Forward
0 new messages