ID 278148 - GafferThree_LightGeometry node type changes type of edited light geometry attributes from double to float

Follow

Problem summary:

The GenericAssign-based GafferThree_LightGeometry node type is defined as using float attributes for the geometry attributes of edited light locations, whereas the light locations are created using double attributes for their geometry parameters.

Steps to reproduce:

  1. Execute the following lines of code in a Python tab to create a simple setup of a LightCreate node wired into a GafferThree_LightGeometry node:
    • 
      lightCreateNode = NodegraphAPI.CreateNode('LightCreate',                                          NodegraphAPI.GetRootNode())locationPath = lightCreateNode.getParameter('name').getValue(0)lightGeometryNode = NodegraphAPI.CreateNode('GafferThree_LightGeometry',                                            NodegraphAPI.GetRootNode())lightGeometryNode.getParameter('CEL').setValue(locationPath, 0)lightCreateNodePosition = NodegraphAPI.GetNodePosition(lightCreateNode)NodegraphAPI.SetNodePosition(lightGeometryNode,                             (lightCreateNodePosition[0],                              lightCreateNodePosition[1] - 74))lightCreateNode.getOutputPort('out').connect(    lightGeometryNode.getInputPort('input'))NodegraphAPI.SetNodeViewed(lightCreateNode, True, True)
  2. Inspect the types of attributes in the geometry group on the /root/world/lgt/light location.

  3. Set the edit flag on the GafferThree_LightGeometry node and change the value of the radiusfov, orthographicWidthcenterOfInterest, near, far, or of one of the screenWindow parameters.

  4. Inspect the types of attributes in the geometry group on the /root/world/lgt/light location again.

Expected behaviour:

The attributes in the geometry group that correspond to the edited parameters should use double values.

Actual behaviour:

The attributes in the geometry group that correspond to the edited parameters use floating-point values.

Workaround:

No known workaround.

Reproduced versions/platforms:

  • Katana 2.0v1/Linux
  • Katana 2.5v1/Linux
  • Katana 2.6v1/Linux

Customer version/platform:

Not supplied.

    We're sorry to hear that

    Please tell us why