ComfyUI Node

radians

Stop doing the math by hand

By StableLlama·Created about a year ago·Updated 4 days ago· 48
radians
  • degrees
  • FLOAT

You think in degrees: 90, 180, 45, right angles, half-turns. Math libraries think in radians: π/2, π, π/4. When ComfyUI hands you an angle from a formula, a data list, or a schedule, it's usually in radians - and when a downstream node wants degrees, or you just want to sanity-check a value, you need the conversion. The radians node from Basic data handling does it in one step: feed it degrees, get back radians.

It's the exact inverse of the pack's degrees node, and it's the node you reach for the moment an angle isn't behaving the way your intuition expects.

How it works

A thin wrapper around Python's math.radians(), which multiplies by π / 180. One input, one output:

  • degrees - FLOAT or INT, default 0. Type your angle in.
  • FLOAT output - the same angle in radians.

The familiar landmarks: 0° → 0, 90° → π/2 ≈ 1.571, 180° → π ≈ 3.142, 360° → 2π ≈ 6.283. Negative and fractional angles convert the same way; it's a pure scale.

When you'd actually use it

  • Feeding a formula or custom math that expects radians - the pack's MathFormula supports sin/cos/tan in their raw math-library form, which assume radians.
  • Moving between ComfyUI nodes that disagree on angle units. Some rotation nodes take degrees, some take radians, and a workflow that crosses that boundary is exactly where the factor-of-57.3 bug hides.
  • Building a rotation schedule in degrees (because degrees are readable) and converting once at the end. Keep the graph in the unit you can read, convert at the seam.

The pairing tip

MathSin and MathTan in this same pack have a unit dropdown that already understands degrees - if your angle is just going straight into trig, you don't need this node at all. Use radians when the angle has to be in radians for something else: a formula, another node, or a comparison against a known radian constant.

Installing it

Basic data handling is a zero-dependency pack - no models, no pip installs, nothing to break. ComfyUI Manager, search "Basic data handling", install, restart. Or:

cd ComfyUI/custom_nodes
git clone https://github.com/StableLlama/ComfyUI-basic_data_handling

Restart and radians is under Basic/maths.

The one mental note

radians and degrees are not interchangeable - wire the wrong one and every angle in your workflow shifts by ~57.3, which produces rotations that look almost right and are completely wrong. If you ever see that pattern, it's a unit-conversion node, not a broken node. Check which direction you grabbed.

CategoryBasic/maths

Inputs (1)

NameTypeDefaultDescription
degreesFLOAT,INT0

Outputs (1)

NameTypeDescription
FLOATFLOAT