Add User Data Slot
add_user_dataAdd a User Data slot to any Cinema 4D object, tag, or material to expose custom controls for rigging. Returns the slot's DescID for use with get_params and set_params.
Instructions
Add a new User Data slot to any BaseList2D (common rigging / control-exposure pattern). Returns the slot's DescID (as a nested list) which can be piped into get_params / set_params as a path. dtype aliases: real, long, bool, vector, string, color, filename, time, link.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"handle": "<handle>",
"name": "<name>",
"dtype": "<dtype>"
},
"name": "add_user_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Numeric upper bound (real / long). | |
| min | No | Numeric lower bound (real / long). | |
| name | Yes | Display name for the new UD slot. | |
| step | No | Spinner step size. | |
| dtype | Yes | User-data dtype. | |
| value | No | Initial value. For vector / color, pass [x,y,z]. | |
| handle | Yes | Target (object / tag / material / etc.). | |
| default | No | Default stored on the descriptor. |