getAvatarPath

Returns the path to the avatar image when given the opts, an object describing character options, such as the pose or index.

In the pug template

- const pose = 'example' - const index = 0 - const opts = { - pose, - index, - character: data.characters[index] - } .cover img.background-image.left(src=`${helpers.getAvatarPath(opts)}`)

This could produce an URL like http://localhost:3005/product/mu2-local/image/avatar?pose=spr-1&size=square&character=0&type=adult&characterCount=&name=Daddy&haircolour=haircolour-3&hairtype=short-curly&skintone=tone-6&extra=none&facialhairtype=none&facialhaircolour=haircolour-1&product_slug=mu2-local-docker1712&_size=450x230x0&_width=1280