M3-org / CharacterStudio

Open source web based custom VRM avatar creation platform

Home Page:https://m3-org.github.io/CharacterStudio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate manifest python script improvement / NFT metadata as ID

madjin opened this issue · comments

commented

image

Modify the python script so the id fields are based on the raw metadata fields from the NFTs, but keep the directory/thumbnail paths how we named the files across the project. That way when there's wallet integration we can read from the chain and load 3D NFT assets based on ownership of that token.

For anata project can use the renamed metadata csv files

commented

Ideas for new JSON relationship

[
    {
        "nftNameID":"Attributes_01",
        "groupTrait":"CLOTHING",
        "newValues":{
            "groupTrait":"CLOTHING",
            "traitID":"Action_Cutoff_Splattered",
            "newTextureID":"GreenTexture"
        }
    },
    {
        "nftNameID":"Attributes_15",
        "newValues":{
            "groupTrait":"CLOTHING",
            "traitID":"Action_Cutoff_Splattered",
            "newTextureID":"RedTexture"
        }
    }
]

or something like

{
  "nftNameID":"Attributes_01",
  "groupTrait":"CLOTHING",
  "newValues":{
      "groupTrait":"CLOTHING",
      "traitID":"Action_Cutoff_Splattered",
      "newTraitID":"Action_Cutoff_Splattered_variant1"
   }

from memelotsqui suggestions

commented

master_renamed2.csv contains the category + original + renamed versions of all the traits, perhaps can use to get the values of the original versions from the NFT metadata. Here's a snippet:

Body,trait_type,Category,Original,Rename
Feminine,Brace,BRACE,Abstract Vision Brace,Abstract_Vision_Brace
Feminine,Brace,BRACE,Arrow Brace Blue,Arrow_Brace_Blue
Feminine,Brace,BRACE,Arrow Brace Fallen Angel,Arrow_Brace_Fallen_Angel
Feminine,Brace,BRACE,Arrow Brace Green,Arrow_Brace_Green
Feminine,Brace,BRACE,Arrow Brace Holy,Arrow_Brace_Holy
Feminine,Brace,BRACE,Arrow Brace of Flames,Arrow_Brace_of_Flames
Feminine,Brace,BRACE,Arrow Brace Yellow,Arrow_Brace_Yellow
Feminine,Brace,BRACE,Beams of Burning Light Brace,Beams_of_Burning_Light_Brace
Feminine,Brace,BRACE,Beams of Holy Light Brace + Lollipop Brace,Beams_of_Holy_Light_Brace_plus_Lollipop_Brace
Feminine,Brace,BRACE,Beams of Light Brace,Beams_of_Light_Brace

In the script can first check body, then category, then renamed version and use the value of the original version for the id field

commented

things to fix:

  • "traitsDirectory" pointing to "traitsDirectory": "./anata-vrm/male/" or something generic
  • can load body mesh instead of duplicating across entire project
  • will need to add folder per manifest for trait file paths
  • thumbnails (t_$id.png)
    • the ref image is too wide for display atm

image