ComfyUI Node

degrees

Radians to degrees in ComfyUI, minus the mental math

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

So you've got an angle in radians and you want to know what it is in degrees. Maybe it came out of MathRadians, maybe out of the MathFormula node's atan2(y, x) call, maybe it's a rotation value from some camera or animation workflow that insists on speaking math's native language. The degrees node from Basic data handling does the one thing its name promises: it multiplies your radians by 180 / π and hands you back a number a human can read.

It's a two-second utility, not a glamorous one, and that's fine. ComfyUI is full of nodes that do one boring arithmetic step, and this pack exists to give you the boring steps so you don't have to bolt them together from strings.

How it works

The node is a thin wrapper around Python's math.degrees(). You feed it an angle in radians and it returns the equivalent in degrees. 0 radians becomes 0, π becomes 180, π/2 becomes 90. Negative and fractional inputs work the same way - it's just a scaling factor.

There's exactly one input that matters:

  • radians - a FLOAT or INT (default 0). Type or wire in your radian value.

And one output:

  • FLOAT - the same angle expressed in degrees.

Why you'd reach for it

The most common real use is pairing it with the trigonometric nodes in this same pack. MathSin and MathTan can take degrees directly, so degrees shines when the angle comes from somewhere else - a formula result, a data list, a scheduler - or when you want to display a rotation as degrees for your own sanity while the graph works in radians. It's also handy for any workflow that clamps or compares angles: comparing in degrees against a constant like 45 is a lot less error-prone than trying to eyeball 0.785.

Installing it

No models, no extra Python packages, nothing to download beyond the pack itself. The author explicitly keeps this one dependency-free, which is a nice break from the usual custom-node dependency roulette. Two ways:

  • ComfyUI Manager: search for "Basic data handling" (it's also listed as StableLlama/ComfyUI-basic_data_handling), install, restart.
  • Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/StableLlama/ComfyUI-basic_data_handling

Then restart ComfyUI. That's the whole install - the node shows up under Basic/maths in the node menu.

Gotchas

Honestly, there aren't many. The node just scales a number. The one thing worth knowing: the same pack ships MathRadians for the reverse direction, and they're not interchangeable - mix them up and your angles will be off by a factor of ~57.3. If you're ever debugging a rotation that looks "almost right," that factor is the usual suspect.

CategoryBasic/maths

Inputs (1)

NameTypeDefaultDescription
radiansFLOAT,INT0

Outputs (1)

NameTypeDescription
FLOATFLOAT