lightspeed.trex.stage_manager.plugin.tree.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.

class lightspeed.trex.stage_manager.plugin.tree.usd.category_groups.CategoryGroupsDelegate(header_height: int = 24, row_height: int = 24)#
class lightspeed.trex.stage_manager.plugin.tree.usd.category_groups.CategoryGroupsItem(
display_name: str,
data: Prim | None,
tooltip: str = None,
display_name_ancestor: str = None,
category: str = None,
)#

Create a Category Group Item

Parameters:
  • display_name – The name to display in the Tree

  • data – The USD Prim this item represents

  • tooltip – The tooltip to display when hovering an item in the TreeView

  • display_name_ancestor – A string to prepend to the display name with

  • category – The name of the category this item represents

property default_attr: dict[str, None]#

Return attributes reset when the tree item is destroyed.

property icon#

The icon style name associated with the item. Can be used by the widgets

class lightspeed.trex.stage_manager.plugin.tree.usd.category_groups.CategoryGroupsModel(context_name: str = '')#

Build a virtual category hierarchy from prepared item state.

pydantic model lightspeed.trex.stage_manager.plugin.tree.usd.category_groups.CategoryGroupsTreePlugin#

A flat list of prims that can be grouped using virtual groups

Config:
  • arbitrary_types_allowed: bool = True

Fields:
field delegate: CategoryGroupsDelegate = None#
field model: CategoryGroupsModel = None#
model_post_init(context: Any, /) → 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] = 'CategoryGroupsTreePlugin'#
  • 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.

class lightspeed.trex.stage_manager.plugin.tree.usd.mesh_groups.MeshGroupsDelegate(header_height: int = 24, row_height: int = 24)#
class lightspeed.trex.stage_manager.plugin.tree.usd.mesh_groups.MeshGroupsItem(*args, is_virtual: bool | None = None, **kwargs)#
property default_attr: dict[str, None]#

Return attributes reset when the tree item is destroyed.

property icon#

The icon style name associated with the item. Can be used by the widgets

class lightspeed.trex.stage_manager.plugin.tree.usd.mesh_groups.MeshGroupsModel(context_name: str = '')#

Build a virtual mesh hierarchy from prepared item context data.

pydantic model lightspeed.trex.stage_manager.plugin.tree.usd.mesh_groups.MeshGroupsTreePlugin#

A flat list of prims that can be grouped using virtual groups

Config:
  • arbitrary_types_allowed: bool = True

Fields:
field delegate: MeshGroupsDelegate = None#
field model: MeshGroupsModel = None#
model_post_init(context: Any, /) → 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] = 'MeshGroupsTreePlugin'#