{
  "schema": "rpts.rules/1",
  "name": "Motorbike metadata demo",
  "rules": [
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d02",
      "name": "dark_steel -> SB_Gunmetal_BlackOxide_Steel",
      "description": "MATERIAL_ID = dark_steel. GUNMETAL (Heat-Treated & Black-Oxide Steel), 1522 parts: fasteners, frame hardware, engine parts.",
      "enabled": true,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "MATERIAL_ID",
          "value": "dark_steel",
          "match": "exact",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "assign_material",
          "params": {
            "material": "SB_Gunmetal_BlackOxide_Steel"
          }
        }
      ]
    },
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d03",
      "name": "satin_metal -> SB_SatinSilver_Machined_Aluminium",
      "description": "MATERIAL_ID = satin_metal. SATIN SILVER (Machined Aluminium & Stainless Steel), 277 parts: levers, brake discs, calipers, triple clamps.",
      "enabled": true,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "MATERIAL_ID",
          "value": "satin_metal",
          "match": "exact",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "assign_material",
          "params": {
            "material": "SB_SatinSilver_Machined_Aluminium"
          }
        }
      ]
    },
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d04",
      "name": "black_plastic -> SB_Black_Matte_Engineering_Plastic",
      "description": "MATERIAL_ID = black_plastic. BLACK (Matte Engineering Plastic), 124 parts: connectors, ECU, switches.",
      "enabled": true,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "MATERIAL_ID",
          "value": "black_plastic",
          "match": "exact",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "assign_material",
          "params": {
            "material": "SB_Black_Matte_Engineering_Plastic"
          }
        }
      ]
    },
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d05",
      "name": "grey_satin_powder_coat -> SB_Grey_Satin_Powdercoat",
      "description": "MATERIAL_ID = grey_satin_powder_coat. GREY (Satin Powder-Coated Metal), 102 parts: frame, engine covers, intercooler.",
      "enabled": true,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "MATERIAL_ID",
          "value": "grey_satin_powder_coat",
          "match": "exact",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "assign_material",
          "params": {
            "material": "SB_Grey_Satin_Powdercoat"
          }
        }
      ]
    },
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d06",
      "name": "black_rubber -> SB_Black_Matte_Rubber",
      "description": "MATERIAL_ID = black_rubber. BLACK (Matte Synthetic Rubber), 86 parts: tires, hoses, grips, seals.",
      "enabled": true,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "MATERIAL_ID",
          "value": "black_rubber",
          "match": "exact",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "assign_material",
          "params": {
            "material": "SB_Black_Matte_Rubber"
          }
        }
      ]
    },
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d07",
      "name": "polished_chrome -> SB_Polished_Chrome",
      "description": "MATERIAL_ID = polished_chrome. POLISHED CHROME (Hard-Chromed Steel), 68 parts: fork tubes, pipes, shock rods.",
      "enabled": true,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "MATERIAL_ID",
          "value": "polished_chrome",
          "match": "exact",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "assign_material",
          "params": {
            "material": "SB_Polished_Chrome"
          }
        }
      ]
    },
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d08",
      "name": "acid_green_accent -> SB_AcidGreen_Gloss_Powdercoat",
      "description": "MATERIAL_ID = acid_green_accent. ACID GREEN (Gloss Powder-Coated Metal), 59 parts: rims, springs, accents.",
      "enabled": true,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "MATERIAL_ID",
          "value": "acid_green_accent",
          "match": "exact",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "assign_material",
          "params": {
            "material": "SB_AcidGreen_Gloss_Powdercoat"
          }
        }
      ]
    },
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d09",
      "name": "grey_gloss_paint -> SB_Grey_Gloss_Painted_ABS",
      "description": "MATERIAL_ID = grey_gloss_paint. GREY (Gloss Painted ABS Plastic), 30 parts: fuel tank, fairing, fenders, tail panels.",
      "enabled": true,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "MATERIAL_ID",
          "value": "grey_gloss_paint",
          "match": "exact",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "assign_material",
          "params": {
            "material": "SB_Grey_Gloss_Painted_ABS"
          }
        }
      ]
    },
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d10",
      "name": "charcoal_synthetic_leather -> SB_Charcoal_Synthetic_Leather",
      "description": "MATERIAL_ID = charcoal_synthetic_leather. CHARCOAL (Matte Synthetic Leather over PU Foam), 3 parts: rider seat cover and seat base.",
      "enabled": true,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "MATERIAL_ID",
          "value": "charcoal_synthetic_leather",
          "match": "exact",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "assign_material",
          "params": {
            "material": "SB_Charcoal_Synthetic_Leather"
          }
        }
      ]
    },
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d11",
      "name": "clear_glass -> SB_Clear_Tempered_Glass",
      "description": "MATERIAL_ID = clear_glass. CLEAR (Tempered Glass), 1 part: headset logo glass.",
      "enabled": true,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "MATERIAL_ID",
          "value": "clear_glass",
          "match": "exact",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "assign_material",
          "params": {
            "material": "SB_Clear_Tempered_Glass"
          }
        }
      ]
    },
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d12",
      "name": "Select large parts (>= 100 mm)",
      "description": "DIMENSIONS is text like '35 x 11 x 11 millimeter'; the regex selects parts whose first dimension has 3+ digits.",
      "enabled": true,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "DIMENSIONS",
          "value": "^[1-9][0-9]{2,}(\\.[0-9]+)?\\s*x",
          "match": "regex",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "select",
          "params": {}
        },
        {
          "enabled": true,
          "type": "log",
          "params": {}
        }
      ]
    },
    {
      "id": "7c2a1d0e9f8a4b3c8d1e2f3a4b5c6d13",
      "name": "Show only the engine",
      "description": "Disabled by default: enable it live in the demo, run it, then Undo.",
      "enabled": false,
      "filters": [
        {
          "enabled": true,
          "target": "metadata",
          "attribute": "ON_UserStringList",
          "key": "COMPONENT_GROUP",
          "value": "ENGINE",
          "match": "exact",
          "case_sensitive": false,
          "invert": false,
          "include_descendants": false
        }
      ],
      "actions": [
        {
          "enabled": true,
          "type": "isolate",
          "params": {}
        }
      ]
    }
  ]
}