Post #2226: Wrap the operator in exec and use the invoke argument.
📋 Metadata
- Author: iceythe
- Date: 2019-04-27 23:26:30
- Type:
answer - Quality Score: 7/10
- Reply to: post_02222
🏷️ Tags
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
Wrap the operator in exec and use the invoke argument.
cmd = "bpy.ops.view3d.view_selected('INVOKE_DEFAULT')"
exec(cmd)
❤️ 1 likes