📋 Metadata

💬 Content

Hi, I would like to create an button for my pie menu to increase subdivision of my grid. The command for grid to be set at 1 meter is
C.space_data.overlay.grid_scale = 1

Is there a way to make it to increase each time I press like 0.25 0.5 1 2

Basically current value multiplied by 2 and then similar but to decrease which would be current / 2

C.space_data.overlay.grid_scale = current value * 2
C.space_data.overlay.grid_scale = current value / 2

basically but those command do not obviously work


🔗 View on Blender Artists