Thank your answered , one more question
for obj in bpy.context.scene.objects:
if obj.name.startswith("Cube"):
obj.select_set(True)
I have this code, I want to enter it into the Macros to use, how to enter the right syntax ?
Thank your answered , one more question
for obj in bpy.context.scene.objects:
if obj.name.startswith("Cube"):
obj.select_set(True)
I have this code, I want to enter it into the Macros to use, how to enter the right syntax ?
Hi, if there is anyone who can help, I assigned a pie menu to the left mouse button when I hold. I want it only to activate if I donāt drag the mouse. PME has a drag option and a hold option but the Hold option behaves the same way as drag.
Does anyone know how to abort/escape/cancel a pie menu and perform normal function if you drag the the mouse before the pie menu activates?
Hi, when I invoke the popup dialog and click on the button, the function assigned to the button is triggered but the dialog box does not close. Has anyone encountered this problem?
Use list comprehensions. Here is the code for Command
tab:
[obj.select_set(True) for obj in bpy.context.scene.objects if obj.name.startswith("Cube")]
Hi, PME has close_popups()
function. Try to use it at the end of the code:
...; close_popups()
Iāll try to implement this in the next version.
Meanwhile you can add a new Stack Key
with 1 slot, left mouse button (drag) hotkey and assign function you want to it.
Does the current version have a way to create the Preset menu or Images Thumbnails like in the image below?
If not, do you plan to support this feature for the next version?
Hi there, just bought the add on its great so far.
I was wondering if its possible to add the existing context sensitive ātoolbarā menu to the bottom of a pie menu? and if that was not possable, a way to bring that menu up. I tried copying the existing āwm.toolbarā but that didnāt do anything at all.
Cheers,
Thank you for looking into it for me. Is there a way to make a dynamic stack key that toggles between a specified tool and the last selected tool you had before choosing that tool?
Yes, looks like itās possible. Custom
tab:
from bl_ui.space_toolsystem_common import ToolSelectPanelHelper; cls = ToolSelectPanelHelper._tool_class_from_space_type(C.space_data.type); col = L.column(); col.scale_x = 1.2; cls.draw_cls(col.column(), C, detect_layout=False)
bpy.ops.wm.toolbar()
in Command
tab should work.
Yes, here is the code for a stack key:
tool_id = "builtin.select_box"; tool = C.workspace.tools.from_space_view3d_mode(C.mode); tool_id = getattr(pme, "prev_tool", tool_id) if tool_id == tool.idname else tool_id; setattr(pme, "prev_tool", tool.idname); bpy.ops.wm.tool_set_by_id(name=tool_id)
Thank you again
Ok, I tried it and it doesnāt seem to be working. What Iām trying to do is toggle between the mask tool and which ever sculpt brush I had before using the mask tool. Maybe I should have specified so I apologize for that. I changed the "builtin selection tool " part of your code and replaced it with the mask tool name but it still didnāt work for me.
UPDATE: It works sometimes but not consistently
Oh, I forgot to ask something else I wanted to do! Grease pencil has an Line Tool, Arc tool, Arc, Curve, Etc. They All require the use of the E key to extrude the strokes in draw mode. Iām trying to remap the E key to left mouse (press) but I canāt seem to find these keymaps in blender preferences or the PME addon. How do I remap the E key to LMB press?
Thank you!
I just bought this Add-On and would like to say thanks for Roaoao for developing it.
I do my daily CAD work in Alias AutoStudio and your Add-On makes my switch to Blender in my privat time so much easier. Coming from the Autodesk world, Iām completely amazed how open minded and great the user and developer community here is. Itās fantastic! Thanks for it!
builtin_brush.Mask
tool id works for me:
tool_id = "builtin_brush.Mask"; tool = C.workspace.tools.from_space_view3d_mode(C.mode); tool_id = getattr(pme, "prev_tool", tool_id) if tool_id == tool.idname else tool_id; setattr(pme, "prev_tool", tool.idname); bpy.ops.wm.tool_set_by_id(name=tool_id)
Can you record and post a video?
I canāt find the keymap either.
Hi roaoao!
For more than year iām trying to move with my pipeline from Maya&Mudbox to Blender. From the beginning with help of Pie Menu Editor. Great tool. Iām really appreciated for your work.
Already iām stuck at texturing (handpainting) pipeline. Want to sneak some functionality from Mudbox like:
I assume that for Shift + LMB i need to use sticky key.
On press:
bpy.context.scene.b_painter_brush = 'Brush Blur'; bpy.ops.paint.image_paint(mode='NORMAL')
On release iām going back to previous brush:
bpy.context.scene.b_painter_brush = 'Brush Default'
Blender is changing tool but doesnāt using it - like pressing LMB is not doing any action ( besides changing the cursor )
Any idea how to resolve that problem?
Hi. Is it possible to set two statuses with an if condition on a button?
Exa: I have a Curve, I want to set up two types of Splines: Bezier / Poly assigned to a button. When i press the button, if the Splines are Bezier type will turn into Poly and vice versa.
Hope you help, Thank!
Hello!
Id like to add condition before running main command
but it hides settings for the command and donāt expose it in edit mode in adjust last operation
Any suggestions?
And i need a little help with creating smooth/flat shading toggler
bpy.ops.object.shade_flat() if bpy.context.object.data.polygons[0].use_smooth else bpy.ops.object.shade_smooth()
Thanks for looking into it for me. The mask toggle is working for me now. Will there be an update in the future to allow keymap for extruding strokes for the curve tools in Grease Pencil?