Skip to main content

Dress a Garment

Dress a Garment Sample Plugin Setting Current Avatar Dress Garment Dress a Garment Dress is how you drape a garment over an avatar. U...

Updated over 2 months ago

Dress a Garment

Dress is how you drape a garment over an avatar. Use the Garment API to dress a garment, add iterations to a simulation and so on.

For more information about the feature, please visit here.

To learn more about the rest of the API, please refer to Garment in the repository.

Sample Plugin

Sample plugin for garment creation is available here

Setting Current Avatar

Code Snippet

Python C++ C#

Python

# assuming avatarId is a valid avatar id in the system
BwApi.AvatarCurrentSet(avatarId)

C++

// assuming avatarId is a valid avatar id in the system
BwApiAvatarCurrentSet(avatarId);

C#

// assuming avatarId is a valid avatar id in the system
BwApi.AvatarCurrentSet(avatarId);

Result

set-current.png

Dress Garment

Code Snippet

The code snippet below shows how to start garment dress simulation on the current avatar.

Python C++ C#

Python

BwApi.GarmentDress(garmentId)

C++

BwApiGarmentDress(garmentId);

C#

BwApi.GarmentDress(garmentId);

Result

dress.png
Did this answer your question?