Post #3355: I tried to meet the requirement for including custom bones when export rig with
📋 Metadata
- Author: sleeplessmind
- Date: 2020-06-14 11:22:00
- Type:
bug_report - Quality Score: 6/10
- Reply to: post_03354
- Replies (2): post_03356, post_03361
🏷️ Tags
macro scripting intermediate unsolved
⚙️ Related PME Features
- 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,
-
add custom property in edit mode:
bpy.ops.wm.properties_add(data_path=‘active_bone’) -
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.