Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMSUSD-1118 instance selection highlight #3744

Merged
merged 3 commits into from
May 1, 2024

Conversation

pierrebai-adsk
Copy link
Collaborator

Detect the need to redo the selection highlight by detecting if the instance count changed. Unfortunately, the instancer index version only changes when an instance was toggle off, not when togged on. Might be a bug or not in USD, but we work around it by tracking the instance count too.

Detect the need to redo the selection highlight by detecting if the instance count changed. Unfortunately, the instancer index version only changes when an instance was toggle off, not when togged on. Might be a bug or not in USD, but we work around it by tracking the instance count too.
@pierrebai-adsk pierrebai-adsk added bug Something isn't working adsk Related to Autodesk plugin labels Apr 30, 2024
@pierrebai-adsk pierrebai-adsk self-assigned this Apr 30, 2024
@AramAzhari-adsk
Copy link
Collaborator

Detect the need to redo the selection highlight by detecting if the instance count changed. Unfortunately, the instancer index version only changes when an instance was toggle off, not when togged on. Might be a bug or not in USD, but we work around it by tracking the instance count too.

Does it depend on an attribute change?
If so, some attributes are not reported as "Changed" if they are simply removed or added. Listening to those events should generally fix it.

The fix is only available in somewhat recent USD versions. Maya 2022 and 2024 are not supported.
@pierrebai-adsk pierrebai-adsk changed the title EMSUSD01118 instance selection highlight EMSUSD-1118 instance selection highlight Apr 30, 2024
Explicitly set the selection instead of trying to change the images because the behavior is different between Maya 2022 and the later versions because the fix is only available starting with Maya 2023. It is simpler to make the text behave the same in all version by explicitly selecting the object that the image expect to be selected. (Even if it was by mistake in Maya 2022...)
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-1118/instanceable-highlight branch from 26b0890 to 7dd8c08 Compare April 30, 2024 18:32
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label May 1, 2024
@seando-adsk seando-adsk added vp2renderdelegate Related to VP2RenderDelegate and removed bug Something isn't working adsk Related to Autodesk plugin labels May 1, 2024
@seando-adsk seando-adsk merged commit a2d0f30 into dev May 1, 2024
11 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-1118/instanceable-highlight branch May 1, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge vp2renderdelegate Related to VP2RenderDelegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants