ID 354381 - Crash when calling setActiveCamera() in a Hydra Viewer Viewport with a scene graph location path instead of a ViewportCamera object

Follow

Problem summary:

When using the Python tab to set an active camera, Katana will crash. 

Steps to reproduce:

  1. Make sure the Hydra Viewer tab is visible
  2. Create a CameraCreate node and expand its scene graph
  3. In a python tab, run the following code:

t = UI4.App.Tabs.FindTopTab('Viewer (Hydra)')
d = t.getViewerDelegateByIndex(0)
v = d.getViewportByIndex(0)
v.setActiveCamera('/root/world/cam/camera')
v.setDirty(True)

Expected behaviour:

Active camera changes from persp to Camera

Actual behaviour:

Katana crashes.

Workaround:

No known workaround.

Tested versions/platforms:

  • 0.0v0 - Unaffected
  • 3.0#2168 - Affected

Customer version/platform:

Not supplied

    We're sorry to hear that

    Please tell us why