[Paraview] ScalarOpacityFunction property not set when saving python state
Scott Wittenburg
scott.wittenburg at kitware.com
Thu Oct 23 11:26:59 EDT 2014
Hi all,
Has anyone else noticed this recently? At the bottom of this email is
an example of some state I just saved, which seems to be missing the
following line:
magnitudeDisplay.ScalarOpactiyFunction = splatterValuesPWF
If this is a bug, I can enter a bug report.
Cheers,
Scott
<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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20141023/e9ec2f2f/attachment-0001.html>
More information about the ParaView
mailing list