Post #4522: and still wizardy denied to me ![:stuck_out_tongue:](https://blenderartists.org/

📋 Metadata

  • Author: Adam_Szalai
  • Date: 2022-08-20 09:42:43
  • Type: question
  • Quality Score: 6/10

🏷️ Tags

macro popup-dialog hotkeys intermediate unsolved

  • Macro Editor
  • Stack Key Editor
  • Python Scripting
  • Hotkey Configuration

💬 Content

and still wizardy denied to me :stuck_out_tongue:

1-i’m trying to call a triangulate modifier with parameters, but no success:
`

bpy.ops.object.modifier_add.TriangulateModifier(‘EXEC_DEFAULT’, True, quad_method=‘BEAUTY’, ngon_method=‘BEAUTY’)

`
It looks logical to me :smiley:
I checked this as a (working) reference:

bpy.ops.geometry.attribute_convert(‘EXEC_DEFAULT’, True, mode=‘UV_MAP’)

2-Plus i’m struggling with selection modes from the begining.
Would be cool to make a command that remember what my last selection mode was, if i switch from selection to another mode (like transalate rotate or object/edit modes).
i’m only using the box and circle selection, and i’m using lasso or tweak separately.
I already tried with stack key but it didn’t make the work (similar to the vertex/edge move/slide, which has solved by wizardy scripting :))

3-I tried macroing delete vertex group but it only deletes when a vertex group is already added.
If there is no vertex group, the macro stops at the delete vertex group command.
Is there a way to tell in macro to delete all vertex group no matters if there is 0 or multiply?
Or more important, is there a way not stopping a macro if a command can’t executed?
For example delete all modifiers is working even if there is no modifier in the system.


🔗 View on Blender Artists