-
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
Add tests for sets command and for isolate select in Vp2RenderDelegate. #1678
Add tests for sets command and for isolate select in Vp2RenderDelegate. #1678
Conversation
I have one additional Maya change that is necessary to prevent the isolate select test from crashing, so do not merge this until that change is available. |
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.
testSetsCmd looks pretty good already, does need some undo / redo testing though.
def setUpClass(cls): | ||
# The test USD data is authored Z-up, so make sure Maya is configured | ||
# that way too. | ||
# cmds.upAxis(axis='z') |
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.
Commented out?
test/lib/ufe/testSetsCmd.py
Outdated
import ufeUtils | ||
import usdUtils | ||
|
||
import mayaUsd.ufe |
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.
Don't think any of these are used.
test/lib/ufe/testSetsCmd.py
Outdated
import ufe | ||
|
||
import os |
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.
Unused.
2147b3e
to
a231d29
Compare
cmds.sets( usdCube, add=set1 ) # Add Cube1 to set1 | ||
self.assertTrue(cmds.sets( usdCube, im=set1 )) # Test if Cube1 is in set1 | ||
|
||
# Undo, Redo |
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.
Looks like redo() never actually made it into the file :)
|
||
# Turn on isolate select for cube | ||
cmds.select(usdCube) | ||
cmds.isolateSelect("modelPanel4", state=1) |
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.
Can this function use the result of mayaUtils.activeModelPanel()
as first parameter? Would it make the test more robust?
No description provided.