vendor_connectors.meshy.animate
Animation API - apply animations to rigged models.
Usage: from vendor_connectors.meshy import animate from vendor_connectors.meshy.animations import ANIMATIONS
result = animate.apply(rigged_task_id, animation_id=0)
# Browse animationsfor anim in ANIMATIONS.values(): print(f"{anim.id}: {anim.name}")Module Contents
Section titled “Module Contents”Functions
Section titled “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. |
vendor_connectors.meshy.animate.create(request: vendor_connectors.meshy.models.AnimationRequest) → str
Section titled “vendor_connectors.meshy.animate.create(request: vendor_connectors.meshy.models.AnimationRequest) → str”Create animation task. Returns task_id.
vendor_connectors.meshy.animate.get(task_id: str) → vendor_connectors.meshy.models.AnimationResult
Section titled “vendor_connectors.meshy.animate.get(task_id: str) → vendor_connectors.meshy.models.AnimationResult”Get task status.
vendor_connectors.meshy.animate.poll(task_id: str, interval: float = 5.0, timeout: float = 600.0) → vendor_connectors.meshy.models.AnimationResult
Section titled “vendor_connectors.meshy.animate.poll(task_id: str, interval: float = 5.0, timeout: float = 600.0) → vendor_connectors.meshy.models.AnimationResult”Poll until complete or failed.
vendor_connectors.meshy.animate.apply(rigged_task_id: str, animation_id: int, , loop: bool = True, frame_rate: int = 30, wait: bool = True) → vendor_connectors.meshy.models.AnimationResult | str
Section titled “vendor_connectors.meshy.animate.apply(rigged_task_id: str, animation_id: int, , loop: bool = True, frame_rate: int = 30, wait: bool = True) → vendor_connectors.meshy.models.AnimationResult | str”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: AnimationResult if wait=True, task_id if wait=False