maya-usd icon indicating copy to clipboard operation
maya-usd copied to clipboard

[MAYA-128016] Selection highlight in viewport does not show up on a prim after toggling "Mark/Unmark as Instanceable"

Open gracekumagai opened this issue 2 years ago • 4 comments

Describe the bug A prim that has been marked or unmarked as instanceable does not have the selection highlighted in the viewport.

Similar to #2651: it appears to be selected in the Outliner, however, the highlight is not displayed in the viewport. If we try to re-select the object in the viewport or outliner, it does not appear. It only appears after you move the prim and then, re-select it.

Steps to reproduce Steps to reproduce the behavior:

  1. Open Kitchen_Set_instanced
  2. Select ChairB_1
  3. Right click and select "Unmark as instanceable"

Notice that the ChairB_1 is selected in the outliner but it is not highlighted in the viewport. The same behaviour can be observed if you open Kitchen_set and "Mark as instanceable"

It also prints the following error in the script editor: // Error: Couldn't find primInfo for cache path /Kitchen_set/Props_grp/DiningTable_grp/ChairB_1

Expected behavior We would expect the selection highlight to reflect what is selected in the viewport.

Attachments unmarkasinstanceable_highlight_error

Specs (if applicable):

  • Linux
  • maya2023.2
  • Maya USD commit SHA [dev at 302f393]
  • Pixar USD commit SHA [dev at 60ed06c]

Pixar Internal JIRA MAYA-3508

gracekumagai avatar Oct 13 '22 19:10 gracekumagai

Selection highlight will also stop working on Instanceable prims that have already been set on load. Highlight appears to work the first instance selected, but will drop and not return if you select any related instance of a previous selection.

Windows Maya 2022.4.1-27.0.PFIX using mayaUsdPlugin 0.19.0 with usd-21.11

kgoulding avatar Mar 09 '23 06:03 kgoulding

Issue synced internally to EMSUSD-731

maya-usd-git-sync[bot] avatar Nov 08 '23 15:11 maya-usd-git-sync[bot]

This appears to be partially fixed for us. Unmarking the chair preserves selection, while re-marking it causes selection to drop. Unmarking it (again) revives the selection...

Marking/Unmarking the entire kitchen_set preseves selection, perhaps because it is not originally marked as instanceable.

dj-mcg avatar Nov 20 '23 21:11 dj-mcg

We are looking at a fix for re-marking.

wallworm avatar Mar 15 '24 14:03 wallworm