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