Skip to content

Meshcapade

Nuget package dotnet License: MIT Discord

Features 🔥

  • Fully generated C# SDK based on official Meshcapade OpenAPI specification using AutoSDK
  • Same day update to support new features
  • Updated and supported automatically if there are no breaking changes
  • All modern .NET features - nullability, trimming, NativeAOT, etc.
  • Support .Net Framework/.Net Standard 2.0

Usage

1
2
3
using Meshcapade;

using var client = new MeshcapadeClient(apiKey);

Avatar from Measurements

Shows how to create an avatar from body measurements.

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

// Create an avatar from body measurements.
var response = await client.AvatarsFromMeasurements.CreateAvatarFromMeasurementsAsync(
    new MeasurementAvatarRequest
    {
        Gender = Gender.Male,
        Name = "test-avatar",
        ModelVersion = ModelVersion.Smplx,
    });
Console.WriteLine($"Avatar ID: {response.Data.Id}");

List Avatars

Shows how to list existing avatars.

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

// List all avatars for the authenticated user.
var response = await client.Avatars.ListAvatarsAsync(
    limit: 10,
    page: 1);
Console.WriteLine($"Found {response.Data!.Count} avatars");

Search Motions

Shows how to search for motions by text description.

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");

Support

Priority place for bugs: https://github.com/tryAGI/Meshcapade/issues
Priority place for ideas and general questions: https://github.com/tryAGI/Meshcapade/discussions
Discord: https://discord.gg/Ca2xhfBf3v

Acknowledgments

JetBrains logo

This project is supported by JetBrains through the Open Source Support Program.