Variables give your dimensions and values easy names, like Width or WallThickness.
Use created variables in nearly all input boxes (sketch dimensions, 3D feature cards etc).
When you change a variable, it updates everywhere it is used.
Making a variable
- Click Variables on the top toolbar (This is available in Main caddy mode, sketch, and edit feature mode)
- Choose between local or global (see below).
- Click add button at the bottom of the dialogue.
- Change the name, unit type, and enter in a value (or formula).
- Click Confirm.
Note: nothing changes on your part until you click Confirm. Cancel puts every variable back as it was.
Local and global
- Local variables belong to one object.
- Global variables are shared by every caddy object in your scene.
The window has a tab for each. Right-click a variable to move it from one to the other.
Kinds of variable
The Unit column sets what kind of variable it is:
Unit | Use it for |
|---|---|
A length (mm, cm, in...) | Sizes and distances |
Degrees | Angles |
Unitless | Counts and plain numbers (number of array instances) |
Text | Mostly used in a sketch "text" object |
Colour | Colours for faces and bodies |
Dropdown | A list of presets to choose from (choose the unit type int the edit dropdown button) |
Text variables
When entering text into an input box, you can have to put a variable's name in curly brackets i.e. {MyName}
If you tick Multi-line editor for text, you can easily type text that runs over several lines.
When in single line mode just use \n for a new line.
Colour variables
A colour variable holds six hex digits, like FF8800. Click its square to manually pick the colour.
Dropdown variables
A dropdown holds a preset list of named options, like Small, Medium and Large, each with its own value.
Quick Variables
Tick the Q box next to a variable to make it available back in "Blender mode" in the nPanel, for Quick and easy changes without having to open thae part.
Formulas
Most input boxes can hold a formula too.
Function | What it does |
|---|---|
+ - * / | Basic math operations |
pi | 3.14159..... |
sin(...) cos(...) tan(...) | Trigonometry, in degrees |
asin(...) acos(...) atan(...) | The reverse, answering in degrees |
round(...) | Round to a whole number: round(4.2) = 4Round down: round(4.9) = 4Round up: round(4.1) = 5 |
abs(...) | Size without its sign: abs(-4) = 4return +1 or -1 depending on the value: sign(-4) = -1 |
Tip: names can use letters, numbers and underscores, but no dashes (as a dash is a minus sign).
