Post #4319: Hi @SoundDifferent,

📋 Metadata

  • Author: roaoao
  • Date: 2022-05-12 08:16:20
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_04318

🏷️ Tags

macro hotkeys intermediate solved

  • Macro Editor
  • Python Scripting

💬 Content

Hi @SoundDifferent,

SoundDifferent:

Operator bpy.ops.pme.macro_import_from_rizomuv.poll() failed, context is incorrect

Use 'EXEC_DEFAULT', True in the 3rd operator.

bpy.ops.mesh.select_all('EXEC_DEFAULT', True, action='SELECT')

In this case macro skips context checking for mesh.select_all() operator.


❤️ 4 likes


🔗 View on Blender Artists