ScalarOpacityFunction property not set when saving python state
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Below is an example of some state I just saved, which seems to be missing the following line:
magnitudeDisplay.ScalarOpactiyFunction = splatterValuesPWF
<begin-saved-python-state>
# get color transfer function/color map for 'SplatterValues'
splatterValuesLUT = GetColorTransferFunction('SplatterValues')
splatterValuesLUT.RGBPoints = [0.0, 0.0, 0.0, 1.0,
1211.3642578125, 0.0, 0.12549019607843137, 1.0,
1338.4827880859375, 0.00392156862745098, 1.0, 0.0,
1450.6461181640625, 1.0, 0.1568627450980392, 0.0,
2205.8794212053426, 1.0, 0.0, 0.0]
splatterValuesLUT.ColorSpace = 'HSV'
splatterValuesLUT.NanColor = [0.498039, 0.498039, 0.498039]
splatterValuesLUT.ScalarRangeInitialized = 1.0
# get opacity transfer function/opacity map for 'SplatterValues'
splatterValuesPWF = GetOpacityTransferFunction('SplatterValues')
splatterValuesPWF.Points = [0.0, 0.0, 0.5, 0.0,
0.0, 0.0, 0.5, 0.0,
1001.99267578125, 0.0, 0.5, 0.0,
1293.617431640625, 1.0, 0.5, 0.0,
1674.9727783203125, 0.0, 0.5, 0.0,
2205.87939453125, 0.0, 0.5, 0.0]
splatterValuesPWF.ScalarRangeInitialized = 1
# ----------------------------------------------------------------
# setup the visualization in view 'renderView1'
# ----------------------------------------------------------------
# show data from magnitude
magnitudeDisplay = Show(magnitude, renderView1)
# trace defaults for the display properties.
magnitudeDisplay.Representation = 'Volume'
magnitudeDisplay.ColorArrayName = ['POINTS', 'SplatterValues']
magnitudeDisplay.LookupTable = splatterValuesLUT
magnitudeDisplay.ScalarOpacityUnitDistance = 0.8868099940416558
magnitudeDisplay.Slice = 127
<end-saved-python-state>