Skip to content

Search Motions

Shows how to search for motions by text description.

This example assumes using Meshcapade; is in scope and apiKey contains your Meshcapade API key.

1
2
3
4
5
6
7
8
9
using var client = new MeshcapadeClient(apiKey);

// Search for motions matching a text description.
var response = await client.Motions.SearchMotionsAsync(new SearchMotionsRequest
{
    Text = "walking forward",
    NumMotions = 5,
});
Console.WriteLine($"Found {response.Data!.Count} motions");