Post #3355: I tried to meet the requirement for including custom bones when export rig with

📋 Metadata

🏷️ Tags

macro scripting intermediate unsolved

  • Macro Editor
  • Python Scripting

💬 Content

I tried to meet the requirement for including custom bones when export rig with AutoRigPro addon.
it is armature edit mode. I used a macro to replace the 2 steps process,

  1. add custom property in edit mode:
    bpy.ops.wm.properties_add(data_path=‘active_bone’)

  2. rename the newly add “prop” to “cc”, but when I copy the code in info tab about the second part:
    bpy.ops.wm.properties_edit(data_path=“active_bone”, property=“cc”, value=“1.0”, default=“1.0”, min=0, max=1, use_soft_limits=False, is_overridable_library=False, soft_min=0, soft_max=1, description="", subtype=‘NONE’)

the renaming part did not work.


🔗 View on Blender Artists