ID 385252 - Invalid render camera causes the viewport's filter list to display nothing

Follow

Problem summary
If there is a camera in the scene graph, the filter list (identified by the

icon) in both the Hydra and legacy viewer will not display any cameras or lights when the renderSettings.cameraName attribute on the /root scene graph location has an invalid scene graph camera location.

The renderSettings.cameraName attribute is set by the cameraName parameter in RenderSettings nodes.

If there are no cameras in the scene graph, the invalid camera locations in the renderSettings.cameraName attribute will be displayed in the viewport's filter list including the default (persp, side, front, and top) cameras. 

 

Customer reported version
katana.3.1v3

Customer reported platform
centos7

 

Steps to reproduce
- A Katana project is attached with repro steps included.

1) Create a CameraCreate node.
2) Follow either Option 1 or Option 2 below.

Option 1:
3) Create a RenderSettings node and connect its input to the CameraCreate node's output.
4) Set the cameraName parameter of the RenderSettings node to "invalid_camera".

Option 2:
3) Create an AttributeSet node and connect its input to the CameraCreate node's output.
4) Set the renderSettings.cameraName attribute in /root to "invalid_camera".

5) View the viewport's filter list by clicking the

icon in the Hydra or legacy viewer. 

Notice the filter list contains no lights or cameras.
Notice the following is displayed onto the console:


[ERROR python.Utils.EventModule]: Error in event handler __on_event_idle() for event type "event_idle": AttributeError: 'PyFnAttribute.ConstVector' object has no attribute 'insert'

 

Workaround
Resolve the invalid camera location.

 

Reproduced by support
Katana 3.1v3 - CentOs 7, Windows 10 - Affected
Katana 3.1v1 - CentOs 7, Windows 10 - Affected
Katana 3.0v8 - CentOs 7, Windows 10 - Not Affected
Katana 3.0v1 - CentOs 7, Windows 10 - Not Affected
Katana 2.6v1 - CentOs 7, Windows 10 - Not Affected
Katana 2.5v1 - CentOs 7, Windows 10 - Not Affected
Katana 2.1v1 - CentOs 7                         - Not Affected
Katana 2.0v1 - CentOs 7                         - Not Affected
Katana 1.6v3 - CentOs 7                         - Not Affected

 

Expected behavior
The invalid camera should be displayed in the viewport's filter list including the default (persp, side, front, and top) cameras. 

Actual behavior
Nothing is displayed in the viewport's filter list.

 

    We're sorry to hear that

    Please tell us why