🎨
MYTY
MYTY Kit
MYTY Kit
  • 👋Before you begin
    • GM, MYTY! 👐
    • What is MYTY Kit?
    • MYTY Kit System Requirements
    • Prerequisites
    • MYTY Kit Glossary
  • ✍️Getting started
    • 1. Prepare Illustration PSB
      • Key Requirements
      • Basics of Avatar Animation
      • Recommended PSB file structure for Trait Mapper
    • 2. Trait Mapping
      • Guide to MYTY Kit Trait Mapper
      • New Field: Token ID
    • 3. Install Unity
    • 4. Import MYTY Kit
    • 5. Import 2D Avatar Assets
  • 🔮Make animation
    • 6. Before Rigging
    • 7. Rigging in Sprite Editor
      • Mesh in Unity
    • 8. MYTY Kit Controllers
      • Bone 1D Controller
      • Bone 2D Controller
      • Sprite 1D Range Controller
      • Sprite 2D Nearest Controller
      • Rigged Sprite 2D Nearest Controller
    • 9. Apply Motion Tracking
      • Character Movement
      • Bone Motion Adapters
        • Bone2D
        • BoneTiltOrPosition
        • EyeBlink & EyeBlinkAll
        • EyeBrow & EyeBrowAll
        • Pupil & PupilAll
      • Sprite Motion Adapters
        • EyeBlink & EyeBlinkAll
        • EyeBrow & EyeBrowAll
        • MouthSprite
      • Advanced documentation
        • Mapper & Reducer
        • Stabilizing method
    • 10. Set up AR Face Mode
    • Advanced Animation
      • Physics 2D
      • Sprite Masking
      • Idle Animation
  • 🤹Connect with MYTY Metaverse
    • 11. Export MYTY Avatar
      • MYTY Avatar Viewer
      • Updates on File Export Format — Zip file
    • 12. Upload to Avatar Manager
  • 🗒️Appendix
    • 😄Mediapipe Extension
    • 🎨MotionAdaptorPalette
  • 🗂️MISC
    • About Us
    • Troubleshooting & FAQ
    • Change Log
    • License
      • License.md
    • Legacy Documentation
      • [v0.1.0] 4. Import MYTY Kit
      • [v0.1.0] 6. Before Rigging
      • [v0.1.0] 9. Apply Motion Tracking
      • [v.0.1.0] 11. Export MYTY Avatar
Powered by GitBook
On this page
  1. Getting started
  2. 2. Trait Mapping

New Field: Token ID

Last Updated on January 2023

Trait Mapper File Format Has Been Updated!

  • A new field tokenId is added

    • Since NFT’s token id can be extremely large enough (exceeding 2^64), we are introducing a new field: tokenId with string data type

    • It is required to insert at least one of id, tokenId, for each item. When both fields are included in a single item, id is ignored and tokenId is used

  • The original field id still works

    • id can be used rather than tokenId. The new version of MYTY Kit is compatible with previous Trait Mapper file and asset bundles.

    • The field id may be deprecated in the future, so it is highly recommended to use tokenId rather than id.

  • File Format

    [
    	{
    		"id": number,  // token ID
    		"tokenId": string,  // string type of token ID
    		"filename": string,  // file name of psd/psb file
    		"traits": List<string>  // array of full paths of image layers
    	},
    	...
    ]
  • Example JSON file

    • Case 1: Previous Trait Mapper with only id

      [
      	{
      		"tokenId": "0",
      		"filename": "CollectionName_A_v01.psb",
      		"traits": [
      			"Body/BlueAndYellowJacket",
      			"Head/Tan",
      			"Face/Eyes/BlackLeftEye",
      			 ...
      			"Hair/PurpleLong"
      		]
      	},
      	{
      		"tokenId": "2",
      		"filename": "CollectionName_A_v01.psb",
      		"traits": [
      			"Body/PurpleSweaterWithSatchel",
      			"Head/Gradient2",
      			"Face/Eyes/BlackLeftEye",
      			 ...
      			"Hair/WhiteBucketCap"
      		]
      	},
      	...
      	{
      		"tokenId": "123456",
      		"filename": "CollectionName_B_v01.psb",
      		"traits": [
      			"Body/PinkFleece",
      			"Head/Yellow",
      			"Face/Eyes/BlackLeftEye",
      			 ...
      			"Hair/BlueMessy"
      		]
      	}
      ]
    • Case 2: New Field wth only tokenId

    • Case 3: Mix of id and tokenId

      [
      	{
      		"id": 0,
      		"tokenId": "0",
      		"filename": "CollectionName_A_v01.psb",
      		"traits": [
      			"Body/BlueAndYellowJacket",
      			"Head/Tan",
      			"Face/Eyes/BlackLeftEye",
      			 ...
      			"Hair/PurpleLong"
      		]
      	},
      	{
      		"id": 2,
      		"filename": "CollectionName_A_v01.psb",
      		"traits": [
      			"Body/PurpleSweaterWithSatchel",
      			"Head/Gradient2",
      			"Face/Eyes/BlackLeftEye",
      			 ...
      			"Hair/WhiteBucketCap"
      		]
      	},
      	...
      	{
      		"tokenId": "123456",
      		"filename": "CollectionName_B_v01.psb",
      		"traits": [
      			"Body/PinkFleece",
      			"Head/Yellow",
      			"Face/Eyes/BlackLeftEye",
      			 ...
      			"Hair/BlueMessy"
      		]
      	}
      ]
PreviousGuide to MYTY Kit Trait MapperNext3. Install Unity

Last updated 2 years ago

✍️