Home Technical Talk

[Maya] Generate curve along center of tube script

obrakeo
polycounter lvl 4
Offline / Send Message
obrakeo polycounter lvl 4
Is there a way to generate a curve along the center of a polygonal tube?  I was looking into trying to iterate through all the rings and generate a curve along the average center.  Wondering if there is an existing solve for this or if anyone knows a good way to do it. I'm really only at an intermediate/advanced with python, not a lot of API experience.

Replies

  • obrakeo
    Offline / Send Message
    obrakeo polycounter lvl 4
    Ah, question is in regards to Maya.
  • poopipe
    Offline / Send Message
    poopipe grand marshal polycounter
    You could probably bend Xgen into doing it - The tube groom stuff basically  does what you want. 

     I'm not sure if it'll be able to give you a single centered spline though.

    It sounds like you've worked  out how to write the code to me.  Its just a question of how you feed it information. 

    If you want a general solution, look into median line algorithms.  ItllI be overkill for this use case though



Sign In or Register to comment.