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-1541 - Drag and drop one or more scene objects from the outliner into the include or exclude list #4030

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

samuelliu-adsk
Copy link
Collaborator

No description provided.

@samuelliu-adsk samuelliu-adsk self-assigned this Dec 5, 2024

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
@@ -60,6 +61,11 @@ def __init__(self, items: Sequence[str] = None, parent=None):

self.selectionModel().selectionChanged.connect(lambda: self.selectedItemsChanged.emit())

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
11 checks passed
@seando-adsk seando-adsk deleted the samuelliu-adsk/EMSUSD-1541/drag_drop branch December 9, 2024 17:22
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 workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants