Skip to content

vendor_connectors.meshy.retexture

Retexture API - apply new textures to models.

Usage: from vendor_connectors.meshy import retexture

result = retexture.apply(model_task_id, "golden with gems")
createCreate retexture task. Returns task_id.
getGet task status.
pollPoll until complete or failed.
applyApply new textures to a model.
apply_from_imageApply textures based on reference image.

Create retexture task. Returns task_id.

Get task status.

Poll until complete or failed.

Apply new textures to a model.

Args: model_task_id: Task ID of model to retexture prompt: Text description of new texture enable_original_uv: Keep original UV mapping enable_pbr: Generate PBR maps wait: Wait for completion (default True)

Returns: RetextureResult if wait=True, task_id if wait=False

Apply textures based on reference image.

Args: model_task_id: Task ID of model style_image_url: URL to style reference image enable_original_uv: Keep original UV mapping enable_pbr: Generate PBR maps wait: Wait for completion (default True)

Returns: RetextureResult if wait=True, task_id if wait=False