wrap.embedMarvelousAvatar

wrap.embedMarvelousAvatar(geom, referenceAvatarFileName, wrappedAvatarFileName, neighbourhoodSize = 300)

Embed intance of wrap.Geom into Marvelous Designer avatar (.AVT) file.

Note that reference avatar must be taken from the same version of Marvelous Designer in which the result will be opened. Some versions of Marvalous Designer can not load avatars from others.

Parameters:

geom : wrap.Geom

geometry to embed

referenceAvatarFileName : string

Reference avt-file which will be copied and then body of copy will be replaced by geom.

wrappedAvatarFileName : string

Filename in which output avatar (.AVT) will be stored.

neighbourhoodSize: int

Defines how many neighbour vertices are used to determine bone position. Only used for bones that do not affect skinning.