I wrote this melscript quite a while ago, but it still holds up fine. As I like to model machinery a lot, I frequently have the need to create simple cables and my easiest approach is to extrude a cylinder-cap along a spline. That’s what this script does, together with the flexibility to adjust after the extrusion.
- MakeLive
- Sets the selection to a live object, so the new curve points are created on top of the surface
- CV-Curve
- Just starts the CV curve tool
- Cylinder edges
- Roundness of the cable. I normally have it at 6 or less, to not unnecessarily explode the vertex count
- Extrude
- Does the extrusion along the curve
- ExtrudeDivisions
- The subdivisions of the cable
- Radius
- The thickness of the cable
- Select Curve
- Select the created curve
- Edit Curve
- Enters the curves subobject mode to select the curve points through the geometry
- Select extrusion and delete history
- bakes the cable. After that, dynamic changes are not possible anymore