Anim8or Community

General Category => General Anim8or Forum => Topic started by: Maximilianibus on November 14, 2010, 06:54:29 am

Title: Is there a possibility to create a tube along a spline?
Post by: Maximilianibus on November 14, 2010, 06:54:29 am
hey guys,
im working on a character(my other thread, the mod)
and now i need a not-straight tube.
frankly, im too lazy to do it by hand.... ;D
is there any script or tutorial?
thanks.
greetings
Title: Re: Is there a possibility to create a tube along a spline?
Post by: $imon on November 14, 2010, 07:57:53 am
You can extrude a circular spline along the path you want.

- Draw the path that the tube has to follow
- Make a x-sided N-Gon that has the diameter of your tube
- select the N-Gon, go to Build>Extrude and choose 'path' on the left, set the other settings as you want
- click 'ok' and click on the path you drew at the beginning

that should work ;)

Title: Re: Is there a possibility to create a tube along a spline?
Post by: Maximilianibus on November 14, 2010, 08:12:08 am
thanks! ill try...
Title: Re: Is there a possibility to create a tube along a spline?
Post by: kreator on November 14, 2010, 11:29:03 am
I find NickE`s  ASL script is a very quick option, I assume that you know where to add the script .

Just rename your spline to tubepath  then click the  icon tubepath, then drag in the work area

It is a Parametric shape initally, so alter the default values

ie: Sides = 12, default(6)
    Diameter = 2, default (6)
    Divisions = 60, default (8 ) or other values that suit your needs. The more divisions the smoother the tube becomes ;D

    Then convert to mesh  then you can safely delete your spline.

    I attach the a8s file,  and screenshot of script in action.

 
Title: Re: Is there a possibility to create a tube along a spline?
Post by: ENSONIQ5 on November 14, 2010, 03:43:28 pm
If using the 'Extrude along path' method suggested by $imon, be sure to create both splines (ie the path and the N-Gon) in Front view.  If either spline is created in another view the spline coords get messed up and the N-Gon doesn't correctly follow the path.