Scripting Curves In Blender With Python

Image for post
Image for post
A curve approximating various sine waves.
Image for post
Image for post
Ernst Haeckel, “Actiniae.” from Kunstformen der Natur. Source: Wikimedia.

Render a Curve in Cycles

Image for post
Image for post
Image for post
Image for post
A subdivided and randomized Bezier circle. Left: in edit mode, right: rendered.
Image for post
Image for post
A curve rendered with a taper and bevel.

Convert a Curve to a Mesh

Create A Mesh Loop

Image for post
Image for post
A curve converted to a mesh, skinned and then modified.

Fill a Closed Curve

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Variations on a curve drawing a star with different handle types. Top-left: aligned. Top-right: auto. Bottom-left: free. Bottom-right: vector.
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Left: a heart-shaped curve. Middle: The heart as a mesh. Right: A heart mesh solidified, subdivided and rendered.
Image for post
Image for post
Image for post
Image for post
Heart with quad-based topology. Right: in edit mode. Left: Render of faces manually scaled on z-axis with proportional editing.

Distribute Objects Along a Curve

With Modifiers

Image for post
Image for post
Cubes distributed along a curve.
Image for post
Image for post
Image for post
Image for post
Figures created from adding curve and array modifiers to a curve.

With Python

Image for post
Image for post
Cubes distributed along a curve using the interpolate function.
Image for post
Image for post
Cubes distributed along a spline with multiple knots.
Image for post
Image for post

Animate A Curve

Image for post
Image for post
An animated curve.
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
The shape of the animated curve in three key-frames.

F-Curves

Image for post
Image for post
Image for post
Image for post
The bezier circle animated with elastic interpolation.
Image for post
Image for post
Image for post
Image for post
The bezier circle animated with curve interpolation.
Image for post
Image for post
Image for post
Image for post
An animated cube with customized control points.

Move Along A Curve

With Constraints

Image for post
Image for post
A camera touring around a model.

With Python

Image for post
Image for post
Objects following curved paths, with one curve being a closed loop.
Image for post
Image for post
Multiple objects moving along a curve.

Create a Curve from Data (Rather than Ops)

Image for post
Image for post
A sampler of the possibilities available through a 2D closed curve.

Curves With Multiple Splines

Cut-Outs

Image for post
Image for post
Image for post
Image for post
Left: gasket in edit mode. Right: A render of the mesh with solidify, taper, bevel and subdivision surface modifiers.

Continuity and Discontinuity

Image for post
Image for post
An animated curve with multiple splines.

Branch Out

Image for post
Image for post
A curve with multiple splines, where the first knot of each ‘branch’ spline shares a location with a knot on the ‘trunk’ spline.
Image for post
Image for post
Image for post
Image for post
Left: manually merging vertices on a mesh converted from a multi-spline curve. Right: Overlapping faces on a mesh converted from a multi-spline curve with geometry rendering.
Image for post
Image for post
A mesh created from a curve with branching splines.

Unseen Forces

Vertex Groups

Image for post
Image for post
A grid of cubes with an animated Laplacian smooth modifier.
Image for post
Image for post
Vertex group weighting by proximity to points on a curve.
Image for post
Image for post
Head of a Bearded Old Man, with cast, decimate, wave simple deform and wire-frame modifiers.

Emit Particles Along A Curve

Image for post
Image for post
Particles traveling along a curve

Curves And Armatures

Convert a Curve to an Armature with the Skin Modifier

Image for post
Image for post
A circle converted to an armature via the skin modifier, then animated.
Image for post
Image for post
The weighting of an armature’s influence upon a mesh’s vertices.

Visualize Motion from Armatures

Image for post
Image for post
Curves drawn to represent motion capture data.

Creative coder from Wisconsin, USA.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store