compare_prims
Compare two prims or two variants of one prim side by side to see mesh, face, vertex, triangle, bounds, and material differences, including B minus A and face-change percentage.
Instructions
Compare two prims, or two variants of one prim, side by side: mesh, face, vertex and triangle counts, world bounds and bound materials, with B minus A, and the change in faces as a percentage when A has faces.
Two modes:
Two prims: prim_path_a and prim_path_b.
Two variants: prim_path, variant_set, variant_a and variant_b; this mode wins when all four are given.
Variant mode switches to each variant in turn in Kit's session layer, then puts that layer back exactly as it was, so no file and no selection changes. An unknown variant set or variant is refused, listing those there, and so is a prim inside an instance, naming the instance. For one prim's counts, use get_mesh_stats.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compare_prims"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prim_path | No | Two variants: the prim that has them | |
| variant_a | No | Two variants: the first | |
| variant_b | No | Two variants: the second | |
| prim_path_a | No | Two prims: the first | |
| prim_path_b | No | Two prims: the second | |
| variant_set | No | Two variants: their variant set |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |