Post #255: ![](https://blenderartists.org/user_avatar/blenderartists.org/draguu/48/15444_2.

📋 Metadata

  • Author: roaoao
  • Date: 2016-07-31 04:34:11
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_00254

🏷️ Tags

pie-menu stack scripting intermediate solved

  • Pie Menu Editor
  • Stack Key Editor
  • Command tab
  • Python Scripting
  • Overlay text display

💬 Content

draguu:

ok got it . but it should have to work with one command also … what say ?

I think it will distract users.
You know what action will be next. Because there is only one action.

draguu:

… and is it possible to give option besides every menu( pie and stack and regular) command line , when pressed , user can write what text to display on screen

Yes, it’s possible. You can use this code in Command tab:

O.pme.overlay(text="Hello World")

But if you want to use it with some other action, for example scale object:

bpy.ops.transform.resize()

you have to modify it’s code (add ‘INVOKE_DEFAULT’, True):

O.pme.overlay(text="Hello World"); bpy.ops.transform.resize('INVOKE_DEFAULT', True)

🔗 View on Blender Artists