-
Notifications
You must be signed in to change notification settings - Fork 202
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
MAYA-107600 - UFE/MEL - make select command UFE aware #921
MAYA-107600 - UFE/MEL - make select command UFE aware #921
Conversation
* Updated UFE Selection test now that Maya select command supports UFE.
self.items = [ufe.Hierarchy.createItem(p) for p in paths] | ||
|
||
# Clear selection to start off | ||
cmds.select(clear=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the block above from the test into the setUp() method so it will be called by each test (including my new one). I store the created scene items.
sn = ufe.Selection() | ||
sn.append(item) | ||
ufeSelectCmd.replaceWith(sn) | ||
cmds.select(ufe.PathString.string(item.path())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to use ufeSelectCmd - just use Maya select directly with path string.
@unittest.skipUnless(((ufeUtils.ufeFeatureSetVersion() >= 2) and (mayaUtils.previewReleaseVersion() >= 121)), 'testMayaSelectFlags only available in UFE v2 or greater and Maya Preview Release 121 or later.') | ||
def testMayaSelectFlags(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New select test that tests all the various select command flags that are supported by UFE now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent test, thanks for doing this!
MAYA-107600 - UFE/MEL - make select command UFE aware