2. Trait Mapping
This function is ideally utilized for PFP projects that were created by Generative Art.
MYTY Kit supports expressing multiple PFP Avatars from one AssetBundle file. It means that multiple PFP Avatars will share skeletons and animations defined. And this function can be supported through Trait Mapping file. Trait Mapping file has information about which image layers need to be included in each NFT.
- Every single NFT has its own traits, which represent the key characteristics of the PFP image of the NFT.
- Based on the traits, we can imagine what the image of the NFT will look like.
- As most of the PFP collections have been created by generative art algorithms, each NFT shares its traits with other NFTs in the collection.
Traits of Doodle #7973 displayed in Opensea
Using the Trait Mapping file, MYTY Kit piles the selected image layers up and shows the appearance of each PFP Avatar
- The Trait Mapping file has information about which image layers need to be included in each NFT.
- MYTY Kit utilizes the Trait Mapping file to pile the selected image layers up and build the full image of each PFP avatar.
- Avatar Selector enables us to display certain Avatar that we want to load, by updating the parameter Avatar ID included in Avatar Selector.
- Basically, of course it is possible to create a PFP avatar that supports a single NFT.
- In this case, if we want to create PFP Avatars for the collection level, we have to do the work 10k times repeatedly.
- Using the Trait Mapping file, we only need to create skeletons just once (or several times at most), and each PFP Avatar will share the same skeletons.
- The size of the Motion Adaption-related work and Controller-related work are also significantly reduced, if we use the Trait Mapping file.
- In this case, the PSB file should consist of all the image layers of the whole collection.
- You can either:
- File Extension: JSON file
- Sample file
Trait Mapping file of Ghostsproject collection
- File Format
"id": int, // token ID
"filename": string, // file name of psd file
"traits": List<string> // array of full paths of image layers
- Example JSON file