Post #4318: Guys, im trying to make pretty simple macro with a sequence of some commands:
📋 Metadata
- Author: SoundDifferent
- Date: 2022-05-06 15:29:56
- Type:
bug_report - Quality Score: 6/10
- Replies (1): post_04319
🏷️ Tags
v1-20-x macro macro-execution intermediate unsolved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
- Operator execution
💬 Content
Guys, im trying to make pretty simple macro with a sequence of some commands:
- Import from RizomUV bpy.ops. Those automatically import unwrapped geo to blender.
- Toggle Edit mode
At this point everything works fine. If i run those macro, i will have my unwrapped geo from Rizom, and object will automatically switch to Edit mode.
But at the next stage i need simply select all in Edit Mode, so i added: - bpy.ops.mesh.select_all(action=‘SELECT’)
Unfortunately this gives me those error:
error message
Python: Traceback (most recent call last):
File “C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\pie_menu_editor\operators.py”, line 2167, in invoke
return self.execute_menu(context, event)
File “C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\pie_menu_editor\operators.py”, line 1976, in execute_menu
execute_macro(pm)
File “C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\pie_menu_editor\macro_utils.py”, line 243, in execute_macro
op(‘INVOKE_DEFAULT’, True, **props)
File “C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\modules\bpy\ops.py”, line 130, in call
ret = _op_call(self.idname_py(), C_dict, kw, C_exec, C_undo)
RuntimeError: Operator bpy.ops.pme.macro_import_from_rizomuv.poll() failed, context is incorrect
location: :-1
Im not really sure why those error are happening? It looks like there’s no problem to simply select all 