Edit: I found the answer… I need to call input_box func and not the bpy.ops.pme.input_box operator…
command to create a new collection, set name to input box query dialog, add selected objects to new collection and remove from anothers collections:
input_box(func = lambda value: [ {None for C.scene[‘tempCol’] in [bpy.data.collections.new(name=value)]}, C.scene.collection.children.link(C.scene[‘tempCol’]), [ (C.scene[‘tempCol’] not in o.users_collection and C.scene[‘tempCol’].objects.link(o), [col.objects.unlink(o) for col in o.users_collection if col != C.scene[‘tempCol’] ]) for o in C.selected_objects] ] )
@roaoao In the most recent master all pie menus are broken. When trying to execute one it gives this error message popup. Can you reproduce this?
Python: Traceback (most recent call last):
File "/home/guest/.config/blender/3.0/scripts/addons/pie_menu_editor/operators.py", line 2165, in invoke
return self.execute_menu(context, event)
File "/home/guest/.config/blender/3.0/scripts/addons/pie_menu_editor/operators.py", line 1927, in execute_menu
wm.popup_menu_pie(
TypeError: popup_menu_pie() takes 3 positional arguments but 4 were given
location: <unknown location>:-1
Same here. I installed the freshest version of Blender 3.0 yesterday and I got the same error. I’ve had to roll back to a version of 3.0 from a week ago.
Sorry I don’t have these ones, like you I recently looking for active tools icons but I was not able to find the sources… I took screenshots then edited them with gimp
Often when adding or removing a PME command (stack key, pie menu, etc.) to a keymap, the entire list of keymaps I’ve already assigned will get removed leaving the default ‘Window’ map. It seems random and I’m not sure what triggers it.
I’ve been using the last pie menu version with 2.93 since it was on beta (2 months?) and no problems.
PME usually conflicts with elements in your config so you aren’t going to know until you try basically.
line 1952:
from -----> context.window_manager.popup_menu(self._draw_rm, pm.name)
to -----> context.window_manager.popup_menu(draw_func=self._draw_rm, title=pm.name)
line 1954:
from -----> context.window_manager.popup_menu(self._draw_rm)
to -----> context.window_manager.popup_menu(draw_func=self._draw_rm)
If I edit the operators.py with these changes it will break the addon for me. No error messages, no pie menu editor UI. Everything is just gone. Any advice on what might be wrong? It seems to work for some so maybe I’m missing something.