cops
cops
¶
MCP tool wrappers for Houdini COP (Copernicus) operations.
Each tool delegates to the corresponding handler running inside Houdini via the HTTP bridge.
Functions:
| Name | Description |
|---|---|
create_cop_node |
Create a COP node in the specified network. |
get_cop_geometry |
Get geometry representation from a COP node. |
get_cop_info |
Get information about a COP node. |
get_cop_layer |
Get image layer data from a COP node. |
get_cop_vdb |
Get VDB volumetric data from a COP node. |
list_cop_node_types |
List available COP node types. |
set_cop_flags |
Set flags on a COP node. |
Functions:¶
create_cop_node
async
¶
Create a COP node in the specified network.
Before using this, call list_node_types(context='Cop', filter='
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
Path to the parent COP network. |
required |
|
str
|
COP node type to create. |
required |
|
str | None
|
Override node name. |
None
|
get_cop_geometry
async
¶
get_cop_geometry(ctx: Context, node_path: str, output_index: int = 0) -> dict
get_cop_info
async
¶
get_cop_layer
async
¶
get_cop_layer(
ctx: Context,
node_path: str,
output_index: int = 0,
wire: int | str | None = None,
wire_sum: bool = False,
) -> dict
Get image layer data from a COP node.
A cable output (more than one wire) answers is_cable and wires (name,
data type and each wire's layer summary); copernicus_layer is the wire
named by wire (index or name, default the first), see layer_read.
wire_sum=True adds min/max/average of the per-pixel sum of the
one-channel wires, e.g. to check that blend weights sum to 1.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
Path to the COP node. |
required |
|
int
|
Output connector index. |
0
|
|
int | str | None
|
On a cable output, the wire to read (index or name). |
None
|
|
bool
|
On a cable output, stats of the per-pixel sum of its wires. |
False
|