Post #3561: Hi, I would like to create an button for my pie menu to increase subdivision of

📋 Metadata

  • Author: Sorkkaelain
  • Date: 2020-09-04 15:19:30
  • Type: question
  • Quality Score: 6/10
  • Replies (1): post_03562

🏷️ Tags

pie-menu hotkeys intermediate unsolved

  • Pie Menu Editor
  • Macro Editor
  • Python Scripting

💬 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