Home Technical Talk

Max script to bridge adjacent edges?

polycount lvl 666
Offline / Send Message
PolyHertz polycount lvl 666
Does anyone know of a script to bridge two adjacent edges for creating tris, like the ancient PolyMagus Blend script or this, but which works with newer versions of max?

Replies

  • Noors
    Offline / Send Message
    Noors greentooth
    Haha it doesn't work because Autodesk forum broke the formating. How clever.
    Should be around that, not that i'm a maxscript pro.
    theObj=$
    Edgs= polyop.GetEdgeSelection theObj as array
    if Edgs.count==2 do
    (
     
    EdgA=PolyOp.getEdgeVerts  theObj Edgs[1]
    EdgB=PolyOp.getEdgeVerts  theObj Edgs[2]
    
    if EdgA[2]==EdgB[1] do (theObj.CreateFace #(EdgA[1], EdgA[2], EdgB[2]))
    if EdgB[2]==EdgA[1] do (theObj.CreateFace #(EdgB[1],EdgB[2],EdgA[2]))
    
    )
    
    Note that there's a Bridge Adjacent option in the bridge tool. I don't really get when it works and why it doesnt apply every time tho.
  • PolyHertz
    Offline / Send Message
    PolyHertz polycount lvl 666
    That's exactly what I was looking for, thanks! :)
Sign In or Register to comment.