Problem summary
The overloaded constructor for
Imath.Frustumd throws an error in an OpScript:
Imath.Frustumd(double nearPlane, double farPlane, double fovx, double fovy, double aspect)
Customer reported version
katana.5.0v3
Customer reported platform
centos7
Steps to reproduce - In the Node Graph tab, create a LocationCreate node.
- Create a OpScript node, connected downstream to the LocationCreate node.
- Set the edit flag on the OpScript node.
- In the Parameters tab, change the applyWhere parameter to "at all location".
- In the script parameter, add the following Lua code:
-
4.5 and 5.0: Imath.Frustumd(0.1, 100, 30, 30, 1)
-
6.0 and above: Imath.Frustumd(0.1, 100, 30, 0, 1):ZToDepthExc(0,0,0)
- In the Scene Graph tab, Expand All the scene graph.
Expected behavior Imath.Frustumd returns a valid Frustumd object.
Actual behavior
The following Lua Error is printed in the Scene Graph tab locations.
Lua Runtime Error: C++ exception
Workaround
Use the other overloaded
Imath.Frustumd constructor:
Frustumd(double nearPlane, double farPlane, double left, double right, double top, double bottom[, boolean ortho=false]) → Frustumd
Reproduced by support
This bug has been reproduced in:
Katana 5.0v4 - CentOS 7, Windows 10
Katana 5.0v1 - CentOS 7, Windows 10
Katana 4.5v4 - CentOS 7, Windows 10
Katana 4.5v1 - CentOS 7, Windows 10
Katana 4.0v2 - CentOS 7, Windows 10
Earliest version tested
Katana 4.0v2 -
Imath.Frustumd was not exposed before this version.