vendor_fabric.meshy.animate

Animation API - apply animations to rigged models.

Usage: from vendor_fabric.meshy import animate from vendor_fabric.meshy.animations import ANIMATIONS

result = animate.apply(rigged_task_id, animation_id=0)

# Browse animations
for anim in ANIMATIONS.values():
    print(f"{anim.id}: {anim.name}")

Module Contents

Functions

create

Create animation task. Returns task_id.

get

Get task status.

poll

Poll until complete or failed.

apply

Apply animation to a rigged model.

API

vendor_fabric.meshy.animate.create(request: vendor_fabric.meshy.models.AnimationRequest) extended_data.containers.ExtendedString

Create animation task. Returns task_id.

vendor_fabric.meshy.animate.get(task_id: str) extended_data.containers.ExtendedDict

Get task status.

vendor_fabric.meshy.animate.poll(task_id: str, interval: float = 5.0, timeout: float = 600.0) extended_data.containers.ExtendedDict

Poll until complete or failed.

vendor_fabric.meshy.animate.apply(rigged_task_id: str, animation_id: int, *, loop: bool = True, frame_rate: int = 30, wait: bool = True) extended_data.containers.ExtendedDict | extended_data.containers.ExtendedString

Apply animation to a rigged model.

Args: rigged_task_id: Task ID of rigged model animation_id: Animation ID (0-677, see animations.ANIMATIONS) loop: Whether animation loops frame_rate: Animation frame rate wait: Wait for completion (default True)

Returns: Extended result payload if wait=True, extended task_id if wait=False.