📋 Metadata
- Author: roaoao
- Date: 2019-06-06 01:26:03
- Type:
answer - Reply to: post_02391
- Replies (1): post_02397
💬 Content
cyso:
Can all functions be realized via the costum tab?
Not all but most of them.
cyso:
Tried the following:
L.operator(bpy.ops.mesh.primitive_monkey_add(), text=“”, icon=‘MESH_MONKEY’)
Try this:
L.operator("mesh.primitive_monkey_add", text="", icon='MESH_MONKEY')
Your second command should also work but in this case you need to manually add execution context and undo flag (to be able to adjust operator settings):
L.operator("pme.exec", text="", icon='MESH_MONKEY').cmd = "bpy.ops.mesh.primitive_monkey_add('EXEC_DEFAULT', True)"