Skip to content

Commit

Permalink
Fix testVP2RenderDelegateUSDPreviewSurface for maya 2022 (ufe v2).
Browse files Browse the repository at this point in the history
  • Loading branch information
jufrantz committed Oct 9, 2024
1 parent 2319620 commit 02c65c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,13 @@ def testOpacityThreshold(self):
cmds.file(new=True, force=True)
mayaUtils.loadPlugin('mayaUsdPlugin')

# Import the USD file and the maya camera for the snapshot.
# Import the USD file.
testFile = testUtils.getTestScene('UsdPreviewSurface', 'TestOpacityThreshold.usda')
stageShapeNode, _ = mayaUtils.createProxyFromFile(testFile)
mayaUsdLib.PrimUpdaterManager.editAsMaya(stageShapeNode + ",/scene/camera")
testCamera = cmds.ls(sl=True)[0]
mayaUtils.createProxyFromFile(testFile)

# Frame the scene for the snapshot.
cmds.xform("persp", t= (0, 1, 2.25))
cmds.xform("persp", ro=[-25, 0, 0], ws=True)

# Create a light to cast a shadow.
white_light = cmds.directionalLight(rgb=(1, 1, 1))
Expand All @@ -294,7 +296,6 @@ def testOpacityThreshold(self):
cmds.modelEditor(
mayaUtils.activeModelPanel(),
edit=True,
camera=testCamera,
displayTextures=True,
displayLights='all',
shadows=True,
Expand Down
10 changes: 0 additions & 10 deletions test/testSamples/UsdPreviewSurface/TestOpacityThreshold.usda
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@

def Scope "scene"
{
def Camera "camera"
{
float focalLength = 35
float horizontalAperture = 35.999928
float verticalAperture = 23.999952
float xformOp:rotateX = -25
double3 xformOp:translate = (0, 1, 2.25)
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateX"]
}

def Scope "geo"
{
def "opacityThreshold_000" (
Expand Down

0 comments on commit 02c65c1

Please sign in to comment.