Post #473: ![](https://blenderartists.org/user_avatar/blenderartists.org/shogunato/48/38482

📋 Metadata

🏷️ Tags

hotkeys intermediate solved

  • Macro Editor
  • Python Scripting

💬 Content

shogunato:

Can you please tell me if this is a bug or not ?

To fix that bug you can add ‘INVOKE_DEFAULT’ to the code. For example:

Replace
bpy.ops.view3d.viewnumpad(type='CAMERA')

with this:
bpy.ops.view3d.viewnumpad('INVOKE_DEFAULT', type='CAMERA')

🔗 View on Blender Artists