State:Closed|icon_bug|icon_katana|database:public|Resolution:Fixed|BugID:278148|TargetRelease:2.5v7|
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:
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) Inspect the types of attributes in the geometry group on the /root/world/lgt/light location.
Set the edit flag on the GafferThree_LightGeometry node and change the value of the radius, fov, orthographicWidth, centerOfInterest, near, far, or of one of the screenWindow parameters.
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:
Customer version/platform:
Not supplied.
We're sorry to hear that
Please tell us why