lops
lops
¶
MCP tools for LOPs / USD stage inspection and manipulation.
Functions:
| Name | Description |
|---|---|
create_light |
Create a USD light in a LOP network. |
create_light_rig |
Create a preset lighting rig in a LOP network. |
create_lop_node |
Create a new LOP node. |
find_usd_prims |
Search USD prims by path pattern. |
get_last_modified_prims |
Get prims modified by the last LOP node cook. |
get_stage_info |
Get USD stage info from a LOP node. |
get_usd_attribute |
Read a USD attribute value from a prim. |
get_usd_composition |
Get composition arcs for a USD prim. |
get_usd_layers |
List all layers in a USD stage. |
get_usd_materials |
List all USD materials on a stage. |
get_usd_prim |
Get detailed info about a USD prim. |
get_usd_prim_stats |
Get prim counts by USD type under a root path. |
get_usd_variants |
Get variant sets and selections for a USD prim. |
inspect_usd_layer |
Inspect a USD layer by index. |
list_lights |
List all USD lights on a LOP stage. |
list_usd_prims |
List USD prims on a stage with filtering. |
set_light_properties |
Set properties on a USD light prim via an inline Python LOP. |
set_usd_attribute |
Set a USD attribute value via an inline Python LOP. |
Functions¶
create_light
async
¶
create_light(
ctx: Context,
parent_path: str = "/stage",
light_type: str = "dome",
name: str | None = None,
intensity: float = 1.0,
color: list[float] | None = None,
position: list[float] | None = None,
) -> dict
Create a USD light in a LOP network.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
Parent LOP network path. |
'/stage'
|
|
str
|
"dome", "distant", "rect", "sphere", "disk", or "cylinder". |
'dome'
|
|
str | None
|
Light node name. |
None
|
|
float
|
Light intensity. |
1.0
|
|
list[float] | None
|
[r, g, b] color values. |
None
|
|
list[float] | None
|
[x, y, z] world position. |
None
|
create_light_rig
async
¶
create_light_rig(
ctx: Context,
parent_path: str = "/stage",
preset: str = "three_point",
intensity_mult: float = 1.0,
) -> dict
create_lop_node
async
¶
find_usd_prims
async
¶
get_last_modified_prims
async
¶
get_stage_info
async
¶
get_usd_attribute
async
¶
get_usd_composition
async
¶
get_usd_layers
async
¶
get_usd_materials
async
¶
get_usd_prim
async
¶
get_usd_prim_stats
async
¶
get_usd_variants
async
¶
inspect_usd_layer
async
¶
inspect_usd_layer(ctx: Context, node_path: str, layer_index: int = 0) -> dict
list_lights
async
¶
list_usd_prims
async
¶
list_usd_prims(
ctx: Context,
node_path: str,
root_path: str = "/",
prim_type: str | None = None,
kind: str | None = None,
depth: int | None = None,
) -> dict
List USD prims on a stage with filtering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
LOP node path. |
required |
|
str
|
Root prim path to list from. |
'/'
|
|
str | None
|
USD type filter (e.g. "Mesh", "Xform"). |
None
|
|
str | None
|
Kind filter (e.g. "component", "group"). |
None
|
|
int | None
|
Max traversal depth. |
None
|