Post #2401: ![](https://blenderartists.org/user_avatar/blenderartists.org/michael_knubben/48

📋 Metadata

  • Author: roaoao
  • Date: 2019-06-07 00:42:06
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_02400

🏷️ Tags

scripting advanced solved

  • Stack Key Editor
  • Python Scripting
  • Pie Menu Editor

💬 Content

Michael_Knubben:

Any chance you could add something to help users need less code, like a simple ‘if this, then that’ system, where users can fill in boxes with, for example: if ‘selection’ ‘=’ ‘number of objects’ ‘>’ ‘2’, do ‘command’.

Not worth it. This requires tons of work.
You can use stack keys to store complex ‘commands’ in the slots and call the commands like this:

open_menu("My Stack Key", "Command 1") if 'number of objects' > '2' else open_menu("My Stack Key", "Command 2")

❤️ 1 likes


🔗 View on Blender Artists