-
Notifications
You must be signed in to change notification settings - Fork 201
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-123753 - As a user, I would like my display layers to save with … #2455
MAYA-123753 - As a user, I would like my display layers to save with … #2455
Conversation
…my scene * New unit test for Display Layer save/restore of Ufe (non-Maya) items.
if 'ufeMembers' not in cmds.listAttr('layer1'): | ||
self.skipTest('Maya DisplayLayer does not support saving/restoring Ufe (non-Maya) members.') |
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.
Skip test if the Display Layer doesn't have the new "ufeMembers" attribute.
# Clear and reopen the file. | ||
cmds.file(new=True, force=True) | ||
cmds.file(tempMayaFile, open=True) | ||
|
||
# Verify the two objecst (Maya and non-Maya are in layer). | ||
layerObjs = cmds.editDisplayLayerMembers('layer1', query=True, fn=True) | ||
self.assertTrue('|pSphere1' in layerObjs) | ||
self.assertTrue('|stage1|stageShape1,/Sphere1' in layerObjs) |
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.
The main part of the test. After we save and reload the scene make sure the Ufe item is still in the layer1.
cmds.file(new=True, force=True) | ||
cmds.file(tempMayaFile, open=True) | ||
|
||
# Verify the two objecst (Maya and non-Maya are in layer). |
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.
objecst
…my scene * Code review - fixing spelling mistake.
MAYA-123753 - As a user, I would like my display layers to save with my scene