We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Viewport selection highlighting can get wrong after changing some instancer attributes like invisibleIds and protoIndices.
invisibleIds
protoIndices
Steps to reproduce
import pxr.UsdGeom import maya.cmds import mayaUsd.ufe import mayaUsd_createStageWithNewLayer maya.cmds.loadPlugin("mayaUsdPlugin", quiet=True) proxyShape = mayaUsd_createStageWithNewLayer.createStageWithNewLayer() shapeStage = mayaUsd.ufe.getStage(proxyShape) shapeStage.GetRootLayer().ImportFromString('''#sdf 1 ( defaultPrim="PI" ) def PointInstancer "PI" { point3f[] positions = [(0, 0, 0), (2, 0, 2), (2, 0, -2), (-2, 0, -2), (-2, 0, 2)] int[] protoIndices = [0, 0, 1, 1, 1] rel prototypes = [</PI/Protos/Sphere>, </PI/Protos/Cube>] def Scope "Protos" { def Sphere "Sphere" {} def Cube "Cube" {} } } ''')
instancer = pxr.UsdGeom.PointInstancer(shapeStage.GetDefaultPrim()) instanceIndices = [2, 3] maya.cmds.select([f"{proxyShape},{instancer.GetPath()}/{idx}" for idx in instanceIndices]) # Ensure viewport selection hiliting is updated maya.cmds.refresh()
instancer.GetInvisibleIdsAttr().Set(instanceIndices)
Notice that instance 4 is now wrongly highlighted.
Rebuild the scene by redoing steps 1) and 2).
Change per-instance prototypes by setting protoIndices attribute
instancer.GetProtoIndicesAttr().Set([1, 1, 0, 0, 0])
Expected behavior
We expect viewport to highlight the point instances of ufe global selection even after instancing editions.
Specs (if applicable):
The text was updated successfully, but these errors were encountered:
I retested with v0.30.0, and this appears to be resolved, very likely due to #3744 . Thank you! Closing the issue now.
Sorry, something went wrong.
santosg87
No branches or pull requests
Describe the bug
Viewport selection highlighting can get wrong after changing some instancer attributes like
invisibleIds
andprotoIndices
.Steps to reproduce
invisibleIds
attributeNotice that instance 4 is now wrongly highlighted.
Rebuild the scene by redoing steps 1) and 2).
Change per-instance prototypes by setting
protoIndices
attributeExpected behavior
We expect viewport to highlight the point instances of ufe global selection even after instancing editions.
Specs (if applicable):
The text was updated successfully, but these errors were encountered: