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 <a href="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
# assuming avatarId is a valid avatar id in the system
BwApi.AvatarCurrentSet(avatarId)
// assuming avatarId is a valid avatar id in the system
BwApiAvatarCurrentSet(avatarId);
// 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.
BwApi.GarmentDress(garmentId)
BwApiGarmentDress(garmentId);
BwApi.GarmentDress(garmentId);