batch_shader_uniforms
Scan ShaderMaterial .tres files and bulk-override shader_parameter values across hundreds of assets in one call. Specify parameter names and new values to update cell-shading, outline, or ink settings.
Instructions
Uniform Parameter Batcher: Scan ShaderMaterial .tres files and bulk-override shader_parameter/* values -- change cell-shading threshold, outline thickness, ink color across hundreds of assets in one call.
uniform_overrides maps param names to new value strings: {'outline_thickness': '2.0', 'light_threshold': '0.5'}
Args: directory: Directory to scan for .tres files. uniform_overrides: Dict of {param_name: new_value_string}. recursive: If True, scan all subdirectories (default True). dry_run: If True, report changes without writing files.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"directory": "<directory>",
"uniform_overrides": "<uniform_overrides>"
},
"name": "batch_shader_uniforms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| directory | Yes | ||
| recursive | No | ||
| uniform_overrides | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |