Skip to content

EMSUSD-1541 - Drag and drop one or more scene objects from the outliner into the include or exclude list#4030

Merged
seando-adsk merged 2 commits intodevfrom
samuelliu-adsk/EMSUSD-1541/drag_drop
Dec 9, 2024
Merged

EMSUSD-1541 - Drag and drop one or more scene objects from the outliner into the include or exclude list#4030
seando-adsk merged 2 commits intodevfrom
samuelliu-adsk/EMSUSD-1541/drag_drop

Conversation

@samuelliu-adsk
Copy link
Collaborator

No description provided.

@samuelliu-adsk samuelliu-adsk self-assigned this Dec 5, 2024
prim = stage.GetPrimAtPath(Sdf.Path(path))

if not prim or not prim.IsValid():
raise ValueError("Value must be a float or an int")("Error: The dragged object is not in the same stage as the collection. Ensure that objects belong to the same stage before adding them")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if there's a better way than ValueError in this case, trying to avoid using Maya or UFE specific methods...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other points of the code there's a
raise RuntimeError("Needs to be implemented in derived class")
So I think the ValueError should be fine here

@samuelliu-adsk samuelliu-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Dec 9, 2024

self.placeholder_label = QLabel("Drag objects here or click “+” to add", self)
self.placeholder_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.placeholder_label.setStyleSheet("color: gray; font-size: 18px;")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit worried about this specific color and pixel size here to work on max as well with different dpi monitors

@barbalt barbalt self-requested a review December 9, 2024 15:48
@barbalt
Copy link
Collaborator

barbalt commented Dec 9, 2024

I'll test those internally first

@seando-adsk seando-adsk added the workflows Related to in-context workflows label Dec 9, 2024
@seando-adsk seando-adsk merged commit 018d922 into dev Dec 9, 2024
@seando-adsk seando-adsk deleted the samuelliu-adsk/EMSUSD-1541/drag_drop branch December 9, 2024 17:22
@seando-adsk seando-adsk added shared_components Shared Components (Max / Maya) and removed workflows Related to in-context workflows labels Jan 6, 2025
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 shared_components Shared Components (Max / Maya)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants