{
  "id": "993ef16b-b850-4a37-8e99-cdfe9b8651d3",
  "revision": 0,
  "last_node_id": 98,
  "last_link_id": 191,
  "nodes": [
    {
      "id": 1,
      "type": "LoadImage",
      "pos": [
        -444.8035935037079,
        143.32366013609268
      ],
      "size": [
        315,
        314
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            131
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            13
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.5.0",
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "cannon.webp",
        "image"
      ]
    },
    {
      "id": 11,
      "type": "InvertMask",
      "pos": [
        -128.66156057009192,
        523.7495373526745
      ],
      "size": [
        140,
        26
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 13
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            15,
            130
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.5.1",
        "Node name for S&R": "InvertMask"
      },
      "widgets_values": []
    },
    {
      "id": 10,
      "type": "MaskPreview",
      "pos": [
        100.7133143722656,
        487.37913376361803
      ],
      "size": [
        140,
        246
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 15
        }
      ],
      "outputs": [
        {
          "name": "mask",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.5.1",
        "Node name for S&R": "MaskPreview"
      },
      "widgets_values": []
    },
    {
      "id": 69,
      "type": "Trellis2GetConditioning",
      "pos": [
        -14.13349026671128,
        -51.32300018424205
      ],
      "size": [
        300.052734375,
        122
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "model_config",
          "type": "TRELLIS2_MODEL_CONFIG",
          "link": 129
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 131
        },
        {
          "name": "mask",
          "type": "MASK",
          "link": 130
        }
      ],
      "outputs": [
        {
          "name": "conditioning",
          "type": "TRELLIS2_CONDITIONING",
          "links": [
            160,
            168
          ]
        },
        {
          "name": "preprocessed_image",
          "type": "IMAGE",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "ComfyUI-TRELLIS2",
        "ver": "aa154e8917f94c1d5a45536ecc63636dfdd1bf8b",
        "Node name for S&R": "Trellis2GetConditioning",
        "aux_id": "PozzettiAndrea/ComfyUI-TRELLIS2"
      },
      "widgets_values": [
        "black"
      ]
    },
    {
      "id": 68,
      "type": "LoadTrellis2Models",
      "pos": [
        -451.0438566154145,
        -78.10287981833568
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "model_config",
          "type": "TRELLIS2_MODEL_CONFIG",
          "links": [
            129,
            161,
            169
          ]
        }
      ],
      "properties": {
        "cnr_id": "ComfyUI-TRELLIS2",
        "ver": "aa154e8917f94c1d5a45536ecc63636dfdd1bf8b",
        "Node name for S&R": "LoadTrellis2Models",
        "aux_id": "PozzettiAndrea/ComfyUI-TRELLIS2"
      },
      "widgets_values": [
        "512",
        "auto",
        "auto"
      ]
    },
    {
      "id": 98,
      "type": "Trellis2RasterizePBR",
      "pos": [
        632.0643051701705,
        -259.2630899935094
      ],
      "size": [
        270,
        98
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "trimesh",
          "type": "TRIMESH",
          "link": 188
        },
        {
          "name": "voxelgrid",
          "type": "TRELLIS2_VOXELGRID",
          "link": 189
        },
        {
          "name": "original_mesh",
          "shape": 7,
          "type": "TRIMESH",
          "link": 187
        }
      ],
      "outputs": [
        {
          "name": "trimesh",
          "type": "TRIMESH",
          "links": [
            190,
            191
          ]
        }
      ],
      "properties": {
        "cnr_id": "ComfyUI-TRELLIS2",
        "ver": "43e9c5a12804c31ce871da28e9ed6437511ca1fc",
        "Node name for S&R": "Trellis2RasterizePBR"
      },
      "widgets_values": [
        2048
      ]
    },
    {
      "id": 93,
      "type": "GeomPackPreviewMeshVTK",
      "pos": [
        1788.9663826847793,
        -179.58573908624976
      ],
      "size": [
        512,
        722
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "trimesh",
          "shape": 7,
          "type": "TRIMESH",
          "link": 190
        },
        {
          "name": "voxelgrid",
          "shape": 7,
          "type": "VOXELGRID",
          "link": null
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfyui-geometrypack",
        "ver": "ac3ffb38155d664d96b7850eb59daeab7b85fdc0",
        "Node name for S&R": "GeomPackPreviewMeshVTK"
      },
      "widgets_values": [
        "texture (PBR)",
        "{\"show_edges\":false,\"camera_state\":\"{\\\"position\\\":[0,0,0],\\\"focalPoint\\\":[0,0,0],\\\"viewUp\\\":[0,1,0]}\",\"selected_field\":\"\",\"selected_channel\":\"magnitude\",\"selected_colormap\":\"erdc_rainbow_bright\"}"
      ]
    },
    {
      "id": 64,
      "type": "Preview3D",
      "pos": [
        1290.1936223440455,
        14.359013586932093
      ],
      "size": [
        400,
        550
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "camera_info",
          "shape": 7,
          "type": "LOAD3D_CAMERA",
          "link": null
        },
        {
          "name": "bg_image",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "model_file",
          "type": "STRING,FILE_3D_GLB,FILE_3D_GLTF,FILE_3D_FBX,FILE_3D_OBJ,FILE_3D_STL,FILE_3D_USDZ,FILE_3D",
          "widget": {
            "name": "model_file"
          },
          "link": 163
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.5.1",
        "Node name for S&R": "Preview3D",
        "Camera Config": {
          "cameraType": "perspective",
          "fov": 75,
          "state": {
            "position": {
              "x": 0.7663163262690335,
              "y": 0.05918116599504998,
              "z": 0.7597721447016443
            },
            "target": {
              "x": -0.000008657574653625488,
              "y": 0.0047203898429870605,
              "z": -0.0000015795230865478516
            },
            "zoom": 1,
            "cameraType": "perspective"
          }
        },
        "Last Time Model File": "C:/AI-Software/ComfyUI_windows_portable_nvidia/ComfyUI_windows_portable/ComfyUI/output/trellis2_20260801_084707.glb",
        "Resource Folder": "AI-Software/ComfyUI_windows_portable_nvidia/ComfyUI_windows_portable/ComfyUI/output",
        "Scene Config": {
          "showGrid": true,
          "backgroundColor": "#282828",
          "backgroundImage": "",
          "backgroundRenderMode": "tiled",
          "models": [
            {
              "position": {
                "x": 0,
                "y": 0,
                "z": 0
              },
              "quaternion": {
                "x": 0,
                "y": 0,
                "z": 0,
                "w": 1
              },
              "scale": {
                "x": 1,
                "y": 1,
                "z": 1
              }
            }
          ]
        },
        "Light Config": {
          "intensity": 3,
          "hdri": {
            "enabled": false,
            "hdriPath": "",
            "showAsBackground": false,
            "intensity": 1
          }
        },
        "Model Config": {
          "upDirection": "original",
          "materialMode": "original",
          "showSkeleton": false,
          "gizmo": {
            "enabled": false,
            "mode": "translate",
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            },
            "rotation": {
              "x": 0,
              "y": 0,
              "z": 0
            },
            "scale": {
              "x": 1,
              "y": 1,
              "z": 1
            }
          }
        }
      },
      "widgets_values": [
        "C:/AI-Software/ComfyUI_windows_portable_nvidia/ComfyUI_windows_portable/ComfyUI/output/trellis2_20260801_084707.glb",
        ""
      ]
    },
    {
      "id": 83,
      "type": "Trellis2ShapeToTexturedMesh",
      "pos": [
        463.5888698438264,
        -64.74821756454385
      ],
      "size": [
        332.7662109375,
        214
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "model_config",
          "type": "TRELLIS2_MODEL_CONFIG",
          "link": 169
        },
        {
          "name": "conditioning",
          "type": "TRELLIS2_CONDITIONING",
          "link": 168
        },
        {
          "name": "shape_slat",
          "type": "TRELLIS2_SHAPE_SLAT",
          "link": 166
        },
        {
          "name": "subs",
          "type": "TRELLIS2_SUBS",
          "link": 167
        }
      ],
      "outputs": [
        {
          "name": "voxelgrid",
          "type": "TRELLIS2_VOXELGRID",
          "links": [
            189
          ]
        }
      ],
      "properties": {
        "cnr_id": "ComfyUI-TRELLIS2",
        "ver": "3e157f7b1548e3331d9b92939629b887e0384926",
        "Node name for S&R": "Trellis2ShapeToTexturedMesh",
        "aux_id": "PozzettiAndrea/ComfyUI-TRELLIS2"
      },
      "widgets_values": [
        42,
        "fixed",
        3,
        0.2,
        12
      ]
    },
    {
      "id": 82,
      "type": "Trellis2ImageToShape",
      "pos": [
        -32.36784822926806,
        156.17802241233238
      ],
      "size": [
        308.890625,
        290
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "model_config",
          "type": "TRELLIS2_MODEL_CONFIG",
          "link": 161
        },
        {
          "name": "conditioning",
          "type": "TRELLIS2_CONDITIONING",
          "link": 160
        }
      ],
      "outputs": [
        {
          "name": "mesh",
          "type": "TRIMESH",
          "links": [
            185,
            187
          ]
        },
        {
          "name": "shape_slat",
          "type": "TRELLIS2_SHAPE_SLAT",
          "links": [
            166
          ]
        },
        {
          "name": "subs",
          "type": "TRELLIS2_SUBS",
          "links": [
            167
          ]
        }
      ],
      "properties": {
        "cnr_id": "ComfyUI-TRELLIS2",
        "ver": "3e157f7b1548e3331d9b92939629b887e0384926",
        "Node name for S&R": "Trellis2ImageToShape",
        "aux_id": "PozzettiAndrea/ComfyUI-TRELLIS2"
      },
      "widgets_values": [
        42,
        "fixed",
        6.5,
        0.05,
        12,
        6.5,
        0.05,
        12,
        262144
      ]
    },
    {
      "id": 97,
      "type": "Trellis2ProcessMesh",
      "pos": [
        382.1712084575715,
        226.09429165719598
      ],
      "size": [
        323.12890625,
        298
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "trimesh",
          "type": "TRIMESH",
          "link": 185
        }
      ],
      "outputs": [
        {
          "name": "trimesh",
          "type": "TRIMESH",
          "links": [
            188
          ]
        }
      ],
      "properties": {
        "cnr_id": "ComfyUI-TRELLIS2",
        "ver": "037e84626b9fb2b379c2585e0389a68cf2ad8286",
        "Node name for S&R": "Trellis2ProcessMesh"
      },
      "widgets_values": [
        "on",
        1,
        true,
        500000,
        0.001,
        true,
        4,
        90,
        1,
        1,
        1
      ]
    },
    {
      "id": 86,
      "type": "Trellis2ExportTrimesh",
      "pos": [
        898.979742484285,
        52.91260386569777
      ],
      "size": [
        271.6119140625,
        82
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "trimesh",
          "type": "TRIMESH",
          "link": 191
        }
      ],
      "outputs": [
        {
          "name": "file_path",
          "type": "STRING",
          "links": [
            163
          ]
        }
      ],
      "properties": {
        "cnr_id": "ComfyUI-TRELLIS2",
        "ver": "3e157f7b1548e3331d9b92939629b887e0384926",
        "Node name for S&R": "Trellis2ExportTrimesh",
        "aux_id": "PozzettiAndrea/ComfyUI-TRELLIS2"
      },
      "widgets_values": [
        "trellis2",
        "glb"
      ]
    }
  ],
  "links": [
    [
      13,
      1,
      1,
      11,
      0,
      "MASK"
    ],
    [
      15,
      11,
      0,
      10,
      0,
      "MASK"
    ],
    [
      129,
      68,
      0,
      69,
      0,
      "TRELLIS2_MODEL_CONFIG"
    ],
    [
      130,
      11,
      0,
      69,
      2,
      "MASK"
    ],
    [
      131,
      1,
      0,
      69,
      1,
      "IMAGE"
    ],
    [
      160,
      69,
      0,
      82,
      1,
      "TRELLIS2_CONDITIONING"
    ],
    [
      161,
      68,
      0,
      82,
      0,
      "TRELLIS2_MODEL_CONFIG"
    ],
    [
      163,
      86,
      0,
      64,
      2,
      "STRING"
    ],
    [
      166,
      82,
      1,
      83,
      2,
      "TRELLIS2_SHAPE_SLAT"
    ],
    [
      167,
      82,
      2,
      83,
      3,
      "TRELLIS2_SUBS"
    ],
    [
      168,
      69,
      0,
      83,
      1,
      "TRELLIS2_CONDITIONING"
    ],
    [
      169,
      68,
      0,
      83,
      0,
      "TRELLIS2_MODEL_CONFIG"
    ],
    [
      185,
      82,
      0,
      97,
      0,
      "TRIMESH"
    ],
    [
      187,
      82,
      0,
      98,
      2,
      "TRIMESH"
    ],
    [
      188,
      97,
      0,
      98,
      0,
      "TRIMESH"
    ],
    [
      189,
      83,
      0,
      98,
      1,
      "TRELLIS2_VOXELGRID"
    ],
    [
      190,
      98,
      0,
      93,
      0,
      "TRIMESH"
    ],
    [
      191,
      98,
      0,
      86,
      0,
      "TRIMESH"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.8264462809917354,
      "offset": [
        718.8186445418039,
        697.5530532452785
      ]
    },
    "frontendVersion": "1.47.11",
    "workflowRendererVersion": "LG",
    "anomalous_hashes": {},
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}