Trivially make long math chains using a simple Python expression.
This supports the main builtin node editors in blender: Shader Editor, Geometry Node Editor, Texture Node Editor, Compositor
Usage
Default Keyboard Shortcut - Ctrl + M
In the text box that appears, type in a mathematical expression that you want to evaluate, for example, sin(x + 64) % (y ** 14 + 10). Accept the dialogue and a node tree will be generated with math nodes.
Mathematical operators you would expect to work are supported, including:
- Addition, Subtraction, Multiplication, Division, Power: + - * / **
- Less Than, Greater Than: < >
- Modulo: %
And all other mathematical functions in the Math node is supported.
- Logarithm: log(x[, base])
- Square Root: sqrt(x)
- Abs: abs(x)
- Exponential: exp(x)
Comparison
- Min: min(x, y)
- Max: max(x, y)
- Compare: cmp(x, y, z)
- Smooth Min: smin(x, y, z)
- Smooth Max: smax(x, y, z)
Rounding
- Round: round(x)
- Floor: floor(x)
- Ceil: ceil(x)
- Truncate: trunc(x) or int(x)
- Fraction: frac(x)
- Floored Modulo: fmod(x, y)
- Wrap: wrap(x, y, z)
- Snap: snap(x, y)
- Ping-Pong: pingpong(x, y)
Trig
- Sin: sin(x)
- Cos: cos(x)
- Tan: tan(x)
- Arcsine: asin(x)
- Arccosine: acos(x)
- Arctangent: atan(x)
- Arctan2: atan2(x)
- Hyperbolic Sine: sinh(x)
- Hyperbolic Cosine: cosh(x)
- Hyperbolic Tangent: tanh(x)
Conversion
- To Radians: rad(degx)
- To Degrees: deg(radx)
This is just really cool! thanks. :)