lightspeed.trex.selection_tree.shared.widget

  • 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.selection_tree.shared.widget.SetupUI(context_name)

Bases: object

DEFAULT_TREE_FRAME_HEIGHT = 200
SIZE_PERCENT_MANIPULATOR_WIDTH = 50
destroy()
get_instance_selection(include_instance_group: bool = False)

Return the instances from within the secondary selection. Do not include instance groups by default.

get_selection()

Return the selection consisting of both the primary and secondary (instance) selections.

refresh()
async scroll_to_item(item, all_visible_items)
show(value)
subscribe_delete_reference(function: Callable[[Usd.Prim, str], None])
subscribe_frame_prim(function: Callable[[Usd.Prim], None])
subscribe_go_to_ingest_tab(func)

Return the object that will automatically unsubscribe when destroyed.

subscribe_reset_released(function: Callable[[Usd.Prim], None])
subscribe_tree_model_emptied(function: Optional[Callable[[], Any]] = None)

Return the object that will automatically unsubscribe when destroyed.

subscribe_tree_selection_changed(function: Callable[[List[Union[lightspeed.trex.selection_tree.shared.widget.selection_tree.model.ItemMesh, lightspeed.trex.selection_tree.shared.widget.selection_tree.model.ItemReferenceFileMesh, lightspeed.trex.selection_tree.shared.widget.selection_tree.model.ItemAddNewReferenceFileMesh, lightspeed.trex.selection_tree.shared.widget.selection_tree.model.ItemAddNewLiveLight, lightspeed.trex.selection_tree.shared.widget.selection_tree.model.ItemInstancesMeshGroup, lightspeed.trex.selection_tree.shared.widget.selection_tree.model.ItemInstanceMesh]]], Any])

Return the object that will automatically unsubscribe when destroyed.