vrc_attach_accessory
Attach an accessory mesh to a specified bone on the avatar armature, setting up parenting hierarchy and optionally generating a toggle parameter for the Expression Menu.
Instructions
Attach an accessory object to a bone on the avatar armature. Similar to VRCFury's armature link — parents the accessory, sets up proper hierarchy, and optionally generates a toggle parameter.
Parameters:
accessory_name: Name of the accessory object (mesh) to attach
target_bone: Bone to attach to (e.g., "Head", "Left_Hand", "Hips")
armature_name: Avatar armature. If empty, uses first found.
create_toggle: Generate an Expression Menu toggle config (default: True)
toggle_parameter: Custom parameter name for toggle. Default: "{accessory_name}_On"
auto_scale: Auto-normalize accessory scale to match armature (default: True)
rotation_correction: Apply rotation before attach, e.g. "X90", "Z-90", "X90,Y180" (default: none)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auto_scale | No | ||
| target_bone | No | ||
| armature_name | No | ||
| create_toggle | No | ||
| accessory_name | No | ||
| toggle_parameter | No | ||
| rotation_correction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |