API#
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
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 omni.flux.properties_pane.transformation.usd.widget.TransformPropertyWidget(
- context_name: str,
- tree_column_widths: List[Length] | None = None,
- columns_resizable: bool = False,
- right_aligned_labels: bool = True,
- attr_display_names_table: Dict[XformOp, List[str]] | None = None,
- virtual_xform_ops: List[List[Tuple[List[XformOp], List[Any]]]] | None = None,
- field_builders: list[FieldBuilder] | None = None,
Bases:
object
Show a panel that shows transform attributes of a prim. If the prim doesn’t have any transform (xform) attribute, the panel will find and show the closest parent that has those attributes.
- __init__(
- context_name: str,
- tree_column_widths: List[Length] | None = None,
- columns_resizable: bool = False,
- right_aligned_labels: bool = True,
- attr_display_names_table: Dict[XformOp, List[str]] | None = None,
- virtual_xform_ops: List[List[Tuple[List[XformOp], List[Any]]]] | None = None,
- field_builders: list[FieldBuilder] | None = None,
Show a panel that shows transform attributes of a prim
- Parameters:
context_name – the usd context
tree_column_widths – the width of the columns in the tree
columns_resizable – if the columns are resizable
right_aligned_labels – if the labels are right aligned
attr_display_names_table – dictionary that set custom display for transform attributes
virtual_xform_ops – the virtual ops to create if missing. - The top-level array is a list of XForm Groups (Translate, Rotation, Scale, etc.) - Will display 1 per group, first item is chosen as default if the group doesn’t exist - Each group item is a tuple of XForm Type list and Default Values List
field_builders (List[_FieldBuilder])
- destroy()#
- property field_builders#
- property property_model#
- refresh(
- paths: List[str | Path] | None = None,
Refresh the panel with the given prim paths
- Parameters:
paths – the USD prim paths to use
- show(value)#
Show the panel or not
- Parameters:
value – visible or not
- subscribe_refresh_done(callback)#
Return the object that will automatically unsubscribe when destroyed.
- property visible#