ID 282363 - Pressing “Force Refresh” on ArnoldShadingNode breaks certain shader parameters

Follow

Problem summary
In some cases, pressing “Force Refresh” on an ArnoldShadingNode can stop certain parameters from updating correctly. For example, filenames can’t be updated via the file browser any more, when certain parameter values are edited  the state badge doesn’t indicate that a local value has been set, and it becomes impossible to switch a parameter with local value back to the default.
 
From initial testing this issue only seems to affect parameters that are not part of a separate page in the shading node UI. The problem does not seem to affect PrmanShadingNodes.
 
Trying to middle mouse drag the name of such a parameter into the Python tab after clicking “Force Refresh” results in the following error:
 

An AttributeError occurred in "BaseParameterPolicy.py": 'NoneType' object has no attribute 'getName'Traceback (most recent call last):  File "bin/python/UI4/software_python/QT4FormWidgets/v0/FormWidget.py", line 1085, in mouseMoveEvent  File "bin/python/UI4/software_python/QT4FormWidgets/v0/FormWidget.py", line 1631, in __startDrag  File "bin/python/UI4/software_python/QT4FormWidgets/v0/FormWidget.py", line 1586, in getMimeData  File "bin/python/UI4/FormMaster/GenericAssignParameterPolicy.py", line 825, in getMimeData  File "bin/python/UI4/FormMaster/BaseParameterPolicy.py", line 207, in getMimeDataAttributeError: 'NoneType' object has no attribute 'getName'[ERROR python.root]: An AttributeError occurred in "BaseParameterPolicy.py": 'NoneType' object has no attribute 'getName'Traceback (most recent call last):  File "bin/python/UI4/software_python/QT4FormWidgets/v0/FormWidget.py", line 1085, in mouseMoveEvent  File "bin/python/UI4/software_python/QT4FormWidgets/v0/FormWidget.py", line 1631, in __startDrag  File "bin/python/UI4/software_python/QT4FormWidgets/v0/FormWidget.py", line 1586, in getMimeData  File "bin/python/UI4/FormMaster/GenericAssignParameterPolicy.py", line 825, in getMimeData  File "bin/python/UI4/FormMaster/BaseParameterPolicy.py", line 207, in getMimeData AttributeError: 'NoneType' object has no attribute 'getName'
 
 
Customer reported version
Katana 2.6v1
Customer reported platform
Not supplied
 
Steps to reproduce
  1. Launch Katana and create an ArnoldShadingNode
  2. Set nodeType to image
  3. Set a value for filename, and verify that this can be changed using the file browser and that clicking the state badge resets it to the default value.
  4. Edit a parameter that is not part of a subgroup in the Parameters tab, for example toffset, and verify that the parameter state badge indicates a local value, and that this can be reset to the default by clicking the state badge.
  5. Click “Force Refresh” at the bottom of the parameters tab.
  6. Try to set the filename to a different value via the filebrowser. Result: The value doesn’t change.
  7. Click on the state badges of the parameters with local values to reset them to default. Result: Nothing happens.
  8. Edit the value of a parameter that is still set to its default. Result: The value changes in the UI, but the state badge does not update to indicate that a local value has been set.
 
Workaround
Change the nodeType to a different value and back again.
 
Reproduced by support
Katana 2.5v5, 2.6v1 Windows 7
Katana 2.0v5, 2.1v5, 2.5v5, 2.6v1 CentOS7
 
Not reproducible in Katana 1.6v3
 
Expected behaviour
Refreshing the shading node parameters shouldn’t have this effect.

    We're sorry to hear that

    Please tell us why