📋 Metadata
- Author: roaoao
- Date: 2016-07-31 04:34:11
- Type:
answer - Reply to: post_00254
💬 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)