Home Technical Talk
The BRAWL² Tournament Challenge has been announced!

It starts May 12, and ends Sept 12. Let's see what you got!

https://polycount.com/discussion/237047/the-brawl²-tournament

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.
    1. theObj=$
    2. Edgs= polyop.GetEdgeSelection theObj as array
    3. if Edgs.count==2 do
    4. (
    5. EdgA=PolyOp.getEdgeVerts theObj Edgs[1]
    6. EdgB=PolyOp.getEdgeVerts theObj Edgs[2]
    7.  
    8. if EdgA[2]==EdgB[1] do (theObj.CreateFace #(EdgA[1], EdgA[2], EdgB[2]))
    9. if EdgB[2]==EdgA[1] do (theObj.CreateFace #(EdgB[1],EdgB[2],EdgA[2]))
    10.  
    11. )
    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.