Post #2583: When I add a command item, can I add command sequence like this

📋 Metadata

🏷️ Tags

macro command-sequences beginner unsolved

  • Macro Editor
  • Python Scripting
  • Command Items

💬 Content

When I add a command item, can I add command sequence like this

  1. add a cube
  2. edit mode
    3,bevel the cube
    bpy.ops.mesh.primitive_cube_add(enter_editmode=False, location=(0, 0, 0))
    bpy.ops.object.editmode_toggle()
    bpy.ops.machin3.edit_mode()
    bpy.ops.mesh.bevel(offset=0.444553, offset_pct=0, vertex_only=False)
    How can I put these command sequence in one command item?
    I mean, I press this button, and the object will execute the command sequence automatically
    2019-08-06%2014-07-57%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE

work same like this addon


🔗 View on Blender Artists