Skip to content

vex

vex

MCP tool wrappers for Houdini VEX operations.

Each tool delegates to the corresponding handler running inside Houdini via the HTTP bridge.

Functions:

Name Description
create_vex_expression

Set a VEX expression on a parameter.

create_wrangle

Create an Attribute Wrangle node with VEX code.

get_wrangle_code

Read the VEX code from an Attribute Wrangle node.

set_wrangle_code

Set VEX code on an existing Attribute Wrangle node.

validate_vex

Validate VEX code by cooking the node and checking for errors.

Functions

create_vex_expression async

create_vex_expression(
    ctx: Context, node_path: str, parm_name: str, vex_code: str
) -> dict

Set a VEX expression on a parameter.

Parameters:

Name Type Description Default
node_path
str

Path to the node.

required
parm_name
str

Parameter name.

required
vex_code
str

VEX expression code.

required

create_wrangle async

create_wrangle(
    ctx: Context,
    parent_path: str,
    vex_code: str,
    run_over: str = "Points",
    name: Optional[str] = None,
) -> dict

Create an Attribute Wrangle node with VEX code.

Preferred over execute_python for all geometry manipulation.

Parameters:

Name Type Description Default
parent_path
str

Parent SOP network path.

required
vex_code
str

VEX snippet to set.

required
run_over
str

Element to run over ("Points", "Vertices", "Primitives", "Detail", "Numbers").

'Points'
name
Optional[str]

Node name.

None

get_wrangle_code async

get_wrangle_code(ctx: Context, node_path: str) -> dict

Read the VEX code from an Attribute Wrangle node.

Parameters:

Name Type Description Default
node_path
str

Path to the wrangle node.

required

set_wrangle_code async

set_wrangle_code(ctx: Context, node_path: str, vex_code: str) -> dict

Set VEX code on an existing Attribute Wrangle node.

Parameters:

Name Type Description Default
node_path
str

Path to the wrangle node.

required
vex_code
str

VEX snippet to set.

required

validate_vex async

validate_vex(ctx: Context, node_path: str) -> dict

Validate VEX code by cooking the node and checking for errors.

Parameters:

Name Type Description Default
node_path
str

Path to the wrangle node.

required