lightspeed.trex.stage_manager.plugin.filter.usd#

  • SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

  • SPDX-License-Identifier: Apache-2.0

  • Licensed under the Apache License, Version 2.0 (the “License”);

  • you may not use this file except in compliance with the License.

  • You may obtain a copy of the License at

  • https://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software

  • distributed under the License is distributed on an “AS IS” BASIS,

  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  • See the License for the specific language governing permissions and

  • limitations under the License.

pydantic model lightspeed.trex.stage_manager.plugin.filter.usd.instance_group.InstanceGroupFilterPlugin#

Filter plugin for USD instance prims.

Filters prims based on whether they are instances.

Config:
  • arbitrary_types_allowed: bool = True

Fields:
field display_name: str = 'Instance Group'#
field filter_category: _FilterCategory = FilterCategory.GROUP#
field tooltip: str = 'Filter for instance group'#
model_post_init(_context: object) → None#

This function is meant to behave like a BaseModel method to initialize private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self – The BaseModel instance.

  • context – The context.

name: ClassVar[str] = 'InstanceGroupFilterPlugin'#
  • SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

  • SPDX-License-Identifier: Apache-2.0

  • Licensed under the Apache License, Version 2.0 (the “License”);

  • you may not use this file except in compliance with the License.

  • You may obtain a copy of the License at

  • https://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software

  • distributed under the License is distributed on an “AS IS” BASIS,

  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  • See the License for the specific language governing permissions and

  • limitations under the License.

pydantic model lightspeed.trex.stage_manager.plugin.filter.usd.is_capture.IsCaptureFilterPlugin#
Config:
  • arbitrary_types_allowed: bool = True

Fields:
field display_name: str = 'Asset State'#
field reference_type: ReferenceType = ReferenceType.ALL#

Whether to keep captured, replaced, deleted, or all references when filtering

field tooltip: str = 'Filter by prim reference type.\n\nOptions:\n- All: Show every prim.\n- Captured: Show prims that still reference captured assets.\n- Replaced: Show prims using replacement assets instead of captured references.\n- Deleted: Show captured prims whose reference was removed.'#
build_filter_predicate(
cancel_event: Event | None = None,
) → Callable[[StageManagerItem], bool]#

Build an Asset State predicate with refresh-local caches and replacement layers.

Parameters:

cancel_event – Optional context-refresh cancellation signal.

Returns:

Predicate that evaluates a Stage Manager item against the prepared Asset State data.

build_ui()#

The method used to build the UI for the plugin.

filter_predicate(
item: StageManagerItem,
capture_layer_cache: dict[str, bool] | None = None,
replacement_layers: set[Layer] | None = None,
) → bool#

Return whether an item matches the selected Asset State filter.

Parameters:
  • item – Stage Manager item to evaluate.

  • capture_layer_cache – Optional caller-owned capture-layer cache.

  • replacement_layers – Optional refresh-local replacement-layer snapshot.

Returns:

Whether the item matches the selected reference type.

model_post_init(_context: object) → None#

This function is meant to behave like a BaseModel method to initialize private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self – The BaseModel instance.

  • context – The context.

set_context_name(name: str) → None#

Bind replacement-layer access to a USD context.

Parameters:

name – USD context name.

name: ClassVar[str] = 'IsCaptureFilterPlugin'#
class lightspeed.trex.stage_manager.plugin.filter.usd.is_capture.ReferenceType(*values)#
  • SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

  • SPDX-License-Identifier: Apache-2.0

  • Licensed under the Apache License, Version 2.0 (the “License”);

  • you may not use this file except in compliance with the License.

  • You may obtain a copy of the License at

  • https://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software

  • distributed under the License is distributed on an “AS IS” BASIS,

  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  • See the License for the specific language governing permissions and

  • limitations under the License.

pydantic model lightspeed.trex.stage_manager.plugin.filter.usd.is_category.IsCategoryFilterPlugin#
Config:
  • arbitrary_types_allowed: bool = True

Fields:
field category_type: str = 'All Categories'#

Whether to keep all categories or filter by category type.

field display_name: str = 'Remix Category Filter'#
field tooltip: str = 'Filter prims by their assigned render category.\n\nOptions:\n- All Categories: Show every prim.\n- Individual categories: Show prims assigned to the selected render category.'#
build_filter_predicate(
cancel_event: Event | None = None,
) → Callable[[StageManagerItem], bool]#

Build a selected-category predicate or prepare neutral category memberships.

Parameters:

cancel_event – Optional context-refresh cancellation signal.

Returns:

Predicate that matches the selected category or prepares neutral category group memberships.

build_ui()#

The method used to build the UI for the plugin.

filter_predicate(
item: StageManagerItem,
) → bool#

Return whether an item matches the selected Remix Category filter.

All Categories passes through items; an unresolved category selection matches none.

Parameters:

item – Stage Manager item to evaluate.

Returns:

Whether the item has the selected category attribute.

model_post_init(_context: object) → None#

This function is meant to behave like a BaseModel method to initialize private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self – The BaseModel instance.

  • context – The context.

name: ClassVar[str] = 'IsCategoryFilterPlugin'#
  • SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

  • SPDX-License-Identifier: Apache-2.0

  • Licensed under the Apache License, Version 2.0 (the “License”);

  • you may not use this file except in compliance with the License.

  • You may obtain a copy of the License at

  • https://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software

  • distributed under the License is distributed on an “AS IS” BASIS,

  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  • See the License for the specific language governing permissions and

  • limitations under the License.

class lightspeed.trex.stage_manager.plugin.filter.usd.is_logic_graph.FilterTypes(*values)#
pydantic model lightspeed.trex.stage_manager.plugin.filter.usd.is_logic_graph.RemixLogicPrimsFilterPlugin#
Config:
  • arbitrary_types_allowed: bool = True

Fields:
field current_filter_type: FilterTypes = FilterTypes.NO_FILTERS#

The type of logic to filter by

field display_name: str = 'Remix Logic'#
field tooltip: str = 'Filter Remix Logic prims.\n\nOptions:\n- No Filter: Show every prim.\n- Graphs Only: Show only OmniGraph graph prims.\n- Graphs + Nodes: Show OmniGraph graph and node prims.'#
build_ui() → None#

The method used to build the UI for the plugin.

filter_predicate(
item: StageManagerItem,
) → bool#
Parameters:

item – The Stage Manager item to filter.

Returns:

Whether the item should be kept or not.

model_post_init(_context: object) → None#

This function is meant to behave like a BaseModel method to initialize private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self – The BaseModel instance.

  • context – The context.

name: ClassVar[str] = 'RemixLogicPrimsFilterPlugin'#
  • SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

  • SPDX-License-Identifier: Apache-2.0

  • Licensed under the Apache License, Version 2.0 (the “License”);

  • you may not use this file except in compliance with the License.

  • You may obtain a copy of the License at

  • https://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software

  • distributed under the License is distributed on an “AS IS” BASIS,

  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  • See the License for the specific language governing permissions and

  • limitations under the License.

pydantic model lightspeed.trex.stage_manager.plugin.filter.usd.mesh_group.MeshGroupFilterPlugin#

Filter plugin for USD mesh group.

Filters prims based on whether they are instances.

Config:
  • arbitrary_types_allowed: bool = True

Fields:
field display_name: str = 'Mesh Group'#
field filter_category: _FilterCategory = FilterCategory.GROUP#
field tooltip: str = 'Filter for mesh group'#
model_post_init(_context: object) → None#

This function is meant to behave like a BaseModel method to initialize private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self – The BaseModel instance.

  • context – The context.

name: ClassVar[str] = 'MeshGroupFilterPlugin'#
  • SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

  • SPDX-License-Identifier: Apache-2.0

  • Licensed under the Apache License, Version 2.0 (the “License”);

  • you may not use this file except in compliance with the License.

  • You may obtain a copy of the License at

  • https://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software

  • distributed under the License is distributed on an “AS IS” BASIS,

  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  • See the License for the specific language governing permissions and

  • limitations under the License.

pydantic model lightspeed.trex.stage_manager.plugin.filter.usd.mesh_prims.MeshPrimsFilterPlugin#
Config:
  • arbitrary_types_allowed: bool = True

Fields:
field display_name: str = 'Mesh Prims'#
field include_instances: bool = True#

Whether the filter should also include instances with the meshes or not.

field tooltip: str = 'Filter for mesh prims'#
model_post_init(_context: object) → None#

This function is meant to behave like a BaseModel method to initialize private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self – The BaseModel instance.

  • context – The context.

name: ClassVar[str] = 'MeshPrimsFilterPlugin'#
  • SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

  • SPDX-License-Identifier: Apache-2.0

  • Licensed under the Apache License, Version 2.0 (the “License”);

  • you may not use this file except in compliance with the License.

  • You may obtain a copy of the License at

  • https://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software

  • distributed under the License is distributed on an “AS IS” BASIS,

  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  • See the License for the specific language governing permissions and

  • limitations under the License.

pydantic model lightspeed.trex.stage_manager.plugin.filter.usd.particle_prims.ParticleSystemsFilterPlugin#
Config:
  • arbitrary_types_allowed: bool = True

Fields:
field display_name: str = 'Particle System Prims'#
field tooltip: str = 'Filter for particle systems'#
model_post_init(_context: object) → None#

This function is meant to behave like a BaseModel method to initialize private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self – The BaseModel instance.

  • context – The context.

name: ClassVar[str] = 'ParticleSystemsFilterPlugin'#
  • SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

  • SPDX-License-Identifier: Apache-2.0

  • Licensed under the Apache License, Version 2.0 (the “License”);

  • you may not use this file except in compliance with the License.

  • You may obtain a copy of the License at

  • https://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software

  • distributed under the License is distributed on an “AS IS” BASIS,

  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  • See the License for the specific language governing permissions and

  • limitations under the License.

pydantic model lightspeed.trex.stage_manager.plugin.filter.usd.scene_edit_state.SceneEditFilterPlugin#
Config:
  • arbitrary_types_allowed: bool = True

Fields:
field display_name: str = 'Edit State'#
field mode: SceneEditState = SceneEditState.ALL#

Which subset of prims to show based on mod edit state.

field tooltip: str = 'Filter by whether mods have changed these prims.\n\nOptions:\n- Show all prims: Show every prim in the scene.\n- Modified prims: Show prims with at least one edit from the selected mod layer(s).\n- Unedited prims: Show prims with no opinions from the replacement layer tree.\n- Unused edits: Show prims with mod edits that are shadowed by a stronger opinion.'#
build_ui()#

The method used to build the UI for the plugin.

destroy()#
filter_predicate(
item: StageManagerItem,
) → bool#
Parameters:

item – The Stage Manager item to filter.

Returns:

Whether the item should be kept or not.

model_post_init(_context: object) → None#

This function is meant to behave like a BaseModel method to initialize private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self – The BaseModel instance.

  • context – The context.

set_context_name(name: str)#

Set usd context to initialize plugin before items are rebuilt.

set_selected_layer_ids(ids: set[str] | None)#
sync_to_layer_changes()#
property mod_layer_ids: frozenset[str]#
name: ClassVar[str] = 'SceneEditFilterPlugin'#
property selected_layer_ids: set[str] | None#
class lightspeed.trex.stage_manager.plugin.filter.usd.scene_edit_state.SceneEditState(*values)#