Autodesk / Autodesk/maya-usd

[EMSUSD-669] USD Prims Selectability does not work properly and occurs bad behavior to AttributeEditor and ChannelBox

Open
#3,356 6 comments 0 reactions 1 assignee Claimed by @santosg87 View on GitHub
bug
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

**Bug Description**
Hello!
We're experiencing a weird behavior with the USD Prim Selectability which seems like a bug to us.

**Steps to reproduce**

We have a scene with a usdProxy in it.
We'd like to turn off the Prim Selection of it using the `optionVar 'mayaDisableUfeSelection'`.
If we have the usdProxy selected and run `cmds.optionVar(iv=('mayaDisableUfeSelection', 1))`, the usdProxy will always remain selected.
We can get around that by clearing the selection and then toggling the `optionVar`.
The selection now behaves as we expect but now the Channel Box and Attribute Editor exhibit odd behavior:

- the Attribute Editor doesn't update properly with each new selection UNLESS we go back and forth with another panel to refresh the panel/dock UI (ex, selecting the channel box tab, then going back to attribute editor). then it will display the attributes of the currently selected object.

- the channel box panel always remains blank no matter what is selected

This appears to be the case for us when running in both Maya 2022 and 2023.

Any insight on this? We thought _maybe_ this is some expected feature when working with UFE somehow, but the fact that the Attribute Editor refreshes when it gets toggles strongly suggests a bug to us.

Any help would be appreciated, thanks!

**Expected behavior**
We would expect to not have the Attribute Editor nor the Channel Box unusable for other nodes than usd.

**Specs (if applicable):**
- Linux version 3.10.0-1160.92.1.el7.x86_64 (Red Hat 4.8.5-44)
- gcc version 4.8.5 20150623
- Maya 2023.3
- Maya USD 0.22.0
- Pixar USD 22.11

**Additional context**
(This has been already posted by another colleague few months ago)
https://forums.autodesk.com/t5/maya-forum/mayadisableufeselection-optionvar-breaks-channel-box-amp/td-p/12067372

Stephane
TD Lead @ Cinesite

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.