set_animated_door
Mark objects or free-standing portals as Animated Doors or update their hinge, swing, animation and state. Requires the Animated Doors mod; wall-mounted doors are rejected.
Instructions
Mark objects or free-standing portals as CePeU's Animated Doors, or change them.
Needs the Animated Doors mod (ping reports animated_doors); refused
without it. Its own Export window writes the animated Universal VTT;
export_dd2vtt does not carry the animation.
Only objects and free-standing portals on the current level can be doors.
A wall-mounted door cannot: an opening door would show the wall under it.
Leave a gap in the wall and place the door in it with
add_portal(mount='free', rotation=...) or place_object.
enabled: true declares a door, using the mod's defaults for anything not
given; false removes it and takes no other setting. Other settings change
declared doors only.
hinge: 'a' or 'b', the end it turns on (a: left or top edge of the
unrotated image). swing: 'left' or 'right'. axis: 'width' or 'height', the
image axis along the door. door_type: 'door', 'secret' or 'window'.
animation: swing, slide, swivel, ascend or descend. state: 'closed',
'open' or 'locked' (exported start state; the art does not move).
double_door: two leaves. extension: 0-180, 90 is normal strength.
hinge_offset_a/_b: crop inward from each end, in woxels.
One undo step for all ids; all are checked before any changes.
get_element(id) reports animated_door. duplicate_object copies it.
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": {
"ids": "<ids>"
},
"name": "set_animated_door"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| axis | No | ||
| hinge | No | ||
| state | No | ||
| swing | No | ||
| enabled | No | ||
| animation | No | ||
| door_type | No | ||
| extension | No | ||
| double_door | No | ||
| hinge_offset_a | No | ||
| hinge_offset_b | No |