Imprudence:Build Math Expressions

From Kokua Wiki

Jump to: navigation, search
Type an expression into a number input field and press the Enter key to evaluate it.

Build Math Expressions are a feature available beginning in Imprudence 1.1.0, developed by Aimee Trescothick. They allow builders to perform simple math operations within the number input fields in the Build floater's Object and Texture tabs.

To use a build math expression, type in the expression into an input field and press Enter. The expression will be evaluated, and the result used for the new value of that field.

Contents

Available Variables, Constants, and Operators

Note: Variable, constant, and function names are case-insensitive. I.e. "PX", "px", "pX", and "Px" are all valid and mean the same thing.

Variables

Object:

Texture:

Constants

Operators

New Operators in 1.3

In Imprudence 1.3.0 and later, you can use the following mathematical functions in build expressions:

Examples

Input Field Expression Result
Z Rotation 90 / 4 Z Rotation changes to 22.50°
X Position PX + 20 X Position increases by 20m
X Size SZ - 0.2 X Size changes to the current Z Size minus 0.2m
Twist End (TB - 45) * 2 Twist End changes to the current Twist Begin, minus 45°, then all multiplied by 2.
Glow TRANS * 0.5 Glow changes to half of the current Transparency.
Texture Rotation -RX Texture Rotation changes to the opposite of the object's X Rotation
Profile Cut Begin px / (1000 + pi * -hlw) Left as an exercise for the reader!
Personal tools
Namespaces
Variants
Actions
Navigation
Wiki
Toolbox