Grid Scale Presets

by Artemy Belzer in Addons


This plugin allows artists to swap between user-definable grid scale presets with a hotkey without interrupting workflow. This feature was inspired by some game engines where users can swap between different grids with a keymap. The addon adds a dropdown menu displaying the current grid size to the 3D viewport header (which can be toggled off by preference).

The dropdown menu contains a field where someone can add manual grid scaling and two columns of user-definable grid scale presets. There are two grid-scale preset categories: standard scales (.1, .5, 1, 10, 50, etc.) and scales in the power of two (.02, .04, .08, .16, .32, etc.).

By default, the plugin assigns two keymaps ('[' and ']') to navigate between different grid scales. The user can bind a keymap to some properties if they wish.

By default, the grid-scale swapping functionality applies across all workspaces. Users can click on the Per Workspace button to turn this functionality off if they wish.

The user can also export the plugin's preferences into an '.ini' file for safekeeping or if they prefer defining different grid scale presets in a text editor instead of Blender's preference UI.

3D Viewport Header UI



Per Workspace (highlighted in red) - When on, grid scale presets will be assigned per workspace.
Grid Powers of Two mode (highlighted in green) - When on, the following grid preset selection will be from the Power of Two.
Grid scale menu popup (highlighted in blue) - Shows the current grid scale. Clicking this will show selectable grid scale presets.

3D Viewport Header UI Menu

Grid Scale (highlighted in red) - Current grid scale in the current 3D viewport.

Standard Grid Scale Presets (highlighted in green) – User definable grid scale presets in the "standard" category. Clicking on a preset will set it in all workspaces unless "Per Workspace" is on.

Power of Two Grid Scale Presets (highlighted in blue) – User definable grid scale presets in the "Power of Two" category. Clicking on a preset will set it in all workspaces unless "Per Workspace" is on. The grid scale presets can be defined in the plugin's preferences.

Plugin Preferences


Import Preferences – This button opens an import window where a compatible .ini file with the plugin's preferences can be selected and imported.
Export Preferences – This button opens an export window, where the plugin's preferences can be exported into an .ini file, which can be edited externally.

Grid Scale Presets

Two lists containing "Standard" and "Power of Two" presets. The user can select a preset by clicking the preset index number on the left ("[*]") and edit the preset value by clicking on the value it represents in the middle. There are also additional preset controls (highlighted in numerous colors) which are explained below:

Add grid scale preset (highlighted in red, “+” icon) – Adds a new grid scale preset.

Remove grid scale preset (highlighted in green, “-” icon) – Removes the currently selected grid scale preset.

Move grid scale preset up (highlighted in blue, with the "arrow up icon") – Moves the selected grid scale preset in the addon's preferences upwards.

Move the grid scale preset down (highlighted in magenta, with the "arrow down icon") – Moves the selected grid scale preset in the addon's preferences downwards.

Reset Defaults – Resets grid scale presets in corresponding categories to default values.

Keymaps

Replace default keymaps – When ticked, this replaces the default keymap entries for “[“ and or “].” It is applied during startup. Turning this off will re-enable any disabled keymaps. Setting a custom keymap will prevent default keymaps from getting disabled (if detected).

“Increase Grid Scale” and “Decrease Grid Scale” operator keymaps (highlighted in yellow) - Are the keymaps of the operators included with the plugin. Unchecking the checkbox next to a corresponding keymap disables the operator. Clicking on the keymap (highlighted in cyan) allows users to rebind the keymap to the operators mentioned above.

The user may rebind or bind custom keymaps by right-clicking on a property or operator included in the plugin. These keymaps do not appear in the addon's preferences; instead, they appear in Blender's keymap section in Blender's preferences.

Advanced

Delay UI loading – When ticked, this property ensures that the plugin's UI initializes with a delay. The delay attempts to ensure the UI's order in the header is last.

Show info on scale change – When on, the "Increase Grid Scale" and the "Decrease Grid Scale" operator reports the newly set preset scale.

No UI mode – When on, turns off the plugin's UI in the 3d viewport header.

Precision (Min -1, Max 16) – Floating point precision of grid scale presets. It's not recommended to set the precision below 3. Setting the value to -1 turns off any floating point correction.

  • $7.60
  • $108.57
$7.60

Have questions before purchasing?
Login to message

Details
Sales 20+
Rating
1 ratings
Dev Fund Contributor
Published 7 months ago
Software Version 4.1, 4.0, 3.6, 3.3
License GPL