Newer
Older
# To ensure correct image size when batch processing, please search
# for and uncomment the line `# renderView*.ViewSize = [*,*]`
#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()
#--- Run in Terminal with: 'pvbatch PhaseDiagram_PlotScript.py'
# ----- CREATE A Phase Diagram for the following cases:
# 1. (Hyperbolic Case) Gamma = '0'
# 2. (Elliptic Case) Gamma = 'infinity'
#
drawLine = False
curvature = 0
hide_redcolor = True
# hide_redcolor = False
# create a new 'XML Structured Grid Reader'
# if case == 1:
if gamma == '0':
phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0.vts'])
# if case == 2:
elif gamma == 'infinity':
phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity.vts'])
# create a new 'XML Structured Grid Reader'
# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity.vts'])
# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity_100SP.vts'])
# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity_300p.vts'])
# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinityBetaSmallerOne.vts'])
# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0_300p.vts'])
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity_greaterOne.vts'])
# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0_greaterOne.vts'])
# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0.vts'])
# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity_300SpMu1.vts'])
#phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0_300spmu1.vts'])
# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/beforePrestrainChange/PhaseDiagram3DGammainfinity_100spmu1.vts'])
# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity150P.vts'])
phaseDiagram3DGammainfinityvts.PointArrayStatus = ['Type', 'angles', 'curvature']
# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
# uncomment following to set a specific view size
# renderView1.ViewSize = [999, 547]
## ---- Set a specific view size:
renderView1.ViewSize = [1257, 934]
# show data in view
phaseDiagram3DGammainfinityvtsDisplay = Show(phaseDiagram3DGammainfinityvts, renderView1)
# trace defaults for the display properties.
phaseDiagram3DGammainfinityvtsDisplay.Representation = 'Outline'
phaseDiagram3DGammainfinityvtsDisplay.ColorArrayName = ['POINTS', '']
phaseDiagram3DGammainfinityvtsDisplay.OSPRayScaleArray = 'Type'
phaseDiagram3DGammainfinityvtsDisplay.OSPRayScaleFunction = 'PiecewiseFunction'
phaseDiagram3DGammainfinityvtsDisplay.SelectOrientationVectors = 'None'
phaseDiagram3DGammainfinityvtsDisplay.ScaleFactor = 4.0
phaseDiagram3DGammainfinityvtsDisplay.SelectScaleArray = 'Type'
phaseDiagram3DGammainfinityvtsDisplay.GlyphType = 'Arrow'
phaseDiagram3DGammainfinityvtsDisplay.GlyphTableIndexArray = 'Type'
phaseDiagram3DGammainfinityvtsDisplay.GaussianRadius = 0.2
phaseDiagram3DGammainfinityvtsDisplay.SetScaleArray = ['POINTS', 'Type']
phaseDiagram3DGammainfinityvtsDisplay.ScaleTransferFunction = 'PiecewiseFunction'
phaseDiagram3DGammainfinityvtsDisplay.OpacityArray = ['POINTS', 'Type']
phaseDiagram3DGammainfinityvtsDisplay.OpacityTransferFunction = 'PiecewiseFunction'
phaseDiagram3DGammainfinityvtsDisplay.DataAxesGrid = 'GridAxesRepresentation'
phaseDiagram3DGammainfinityvtsDisplay.PolarAxes = 'PolarAxesRepresentation'
phaseDiagram3DGammainfinityvtsDisplay.ScalarOpacityUnitDistance = 1.1546332790816523
# init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction'
phaseDiagram3DGammainfinityvtsDisplay.OSPRayScaleFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.213836476688135, 0.625, 0.5, 0.0, 1.3616352081298828, 0.6691176295280457, 0.5, 0.0, 1.6666333299996667, 0.8676470518112183, 0.5, 0.0, 1.7358490228652954, 0.6911764740943909, 0.5, 0.0, 2.0, 0.8014705777168274, 0.5, 0.0]
# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction'
phaseDiagram3DGammainfinityvtsDisplay.ScaleTransferFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.4276729533762702, 0.625, 0.5, 0.0, 1.7232704162597656, 0.6691176295280457, 0.5, 0.0, 2.3332666599993335, 0.8676470518112183, 0.5, 0.0, 2.471698045730591, 0.6911764740943909, 0.5, 0.0, 3.0, 0.8014705777168274, 0.5, 0.0]
# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction'
phaseDiagram3DGammainfinityvtsDisplay.OpacityTransferFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.4276729533762702, 0.625, 0.5, 0.0, 1.7232704162597656, 0.6691176295280457, 0.5, 0.0, 2.3332666599993335, 0.8676470518112183, 0.5, 0.0, 2.471698045730591, 0.6911764740943909, 0.5, 0.0, 3.0, 0.8014705777168274, 0.5, 0.0]
# reset view to fit data
renderView1.ResetCamera()
# update the view to ensure updated data information
renderView1.Update()
# create a new 'Transform'
transform1 = Transform(Input=phaseDiagram3DGammainfinityvts)
transform1.Transform = 'Transform'
# Properties modified on transform1.Transform
transform1.Transform.Scale = [0.025, 0.025, 1.0]
# Properties modified on transform1.Transform
# transform1.Transform.Scale = [0.025, 1.0, 1.0]
# show data in view
transform1Display = Show(transform1, renderView1)
# trace defaults for the display properties.
transform1Display.Representation = 'Outline'
transform1Display.ColorArrayName = ['POINTS', '']
transform1Display.OSPRayScaleArray = 'Type'
transform1Display.OSPRayScaleFunction = 'PiecewiseFunction'
transform1Display.SelectOrientationVectors = 'None'
transform1Display.ScaleFactor = 0.1
transform1Display.SelectScaleArray = 'Type'
transform1Display.GlyphType = 'Arrow'
transform1Display.GlyphTableIndexArray = 'Type'
transform1Display.GaussianRadius = 0.005
transform1Display.SetScaleArray = ['POINTS', 'Type']
transform1Display.ScaleTransferFunction = 'PiecewiseFunction'
transform1Display.OpacityArray = ['POINTS', 'Type']
transform1Display.OpacityTransferFunction = 'PiecewiseFunction'
transform1Display.DataAxesGrid = 'GridAxesRepresentation'
transform1Display.PolarAxes = 'PolarAxesRepresentation'
transform1Display.ScalarOpacityUnitDistance = 0.035113904022862234
# init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction'
transform1Display.OSPRayScaleFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.213836476688135, 0.625, 0.5, 0.0, 1.3616352081298828, 0.6691176295280457, 0.5, 0.0, 1.6666333299996667, 0.8676470518112183, 0.5, 0.0, 1.7358490228652954, 0.6911764740943909, 0.5, 0.0, 2.0, 0.8014705777168274, 0.5, 0.0]
# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction'
transform1Display.ScaleTransferFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.4276729533762702, 0.625, 0.5, 0.0, 1.7232704162597656, 0.6691176295280457, 0.5, 0.0, 2.3332666599993335, 0.8676470518112183, 0.5, 0.0, 2.471698045730591, 0.6911764740943909, 0.5, 0.0, 3.0, 0.8014705777168274, 0.5, 0.0]
# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction'
transform1Display.OpacityTransferFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.4276729533762702, 0.625, 0.5, 0.0, 1.7232704162597656, 0.6691176295280457, 0.5, 0.0, 2.3332666599993335, 0.8676470518112183, 0.5, 0.0, 2.471698045730591, 0.6911764740943909, 0.5, 0.0, 3.0, 0.8014705777168274, 0.5, 0.0]
# hide data in view
Hide(phaseDiagram3DGammainfinityvts, renderView1)
# update the view to ensure updated data information
renderView1.Update()
#
# reset view to fit data
renderView1.ResetCamera()
# -------------------------------------------------------------
# toggle 3D widget visibility (only when running from the GUI)
Hide3DWidgets(proxy=transform1.Transform)
# set scalar coloring
ColorBy(transform1Display, ('POINTS', 'angles'))
# rescale color and/or opacity maps used to include current data range
transform1Display.RescaleTransferFunctionToDataRange(True, False)
# show color bar/color legend
transform1Display.SetScalarBarVisibility(renderView1, True)
# get color transfer function/color map for 'angles'
anglesLUT = GetColorTransferFunction('angles')
# get opacity transfer function/opacity map for 'angles'
anglesPWF = GetOpacityTransferFunction('angles')
# --- change representation type
transform1Display.SetRepresentationType('Point Gaussian')
# Properties modified on transform1Display
transform1Display.ShaderPreset = 'Plain circle'
# --- Properties modified on transform1Display
transform1Display.GaussianRadius = 0.0075
# Properties modified on transform1Display
##--- SET OPACITY
# transform1Display.Opacity = 0.07
transform1Display.Opacity = 0.03 #overall Opacity
# transform1Display.Opacity = 0.15 #overall Opacity
# -------------- CHANGE COLORMAP ------------------
# Apply a preset using its name. Note this may not work as expected when presets have duplicate names.
#anglesLUT.ApplyPreset('Cool to Warm', True)
anglesLUT.ApplyPreset('Jet', True)
## (Optional?) Adjust ColorMap:
# get opacity transfer function/opacity map for 'angles'
anglesPWF = GetOpacityTransferFunction('angles') #
# get color transfer function
colorMap = GetColorTransferFunction('angles')
# get color transfer function/color map for 'angles'
anglesLUT = GetColorTransferFunction('angles')
anglesLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'"
anglesLUT.InterpretValuesAsCategories = 0
anglesLUT.AnnotationsInitialized = 0
anglesLUT.ShowCategoricalColorsinDataRangeOnly = 0
anglesLUT.RescaleOnVisibilityChange = 0
anglesLUT.EnableOpacityMapping = 1
anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843]
anglesLUT.UseLogScale = 0
anglesLUT.ColorSpace = 'Diverging'
anglesLUT.UseBelowRangeColor = 0
anglesLUT.BelowRangeColor = [0.0, 0.0, 0.0]
anglesLUT.UseAboveRangeColor = 0
anglesLUT.AboveRangeColor = [0.5, 0.5, 0.5]
anglesLUT.NanColor = [1.0, 1.0, 0.0]
anglesLUT.NanOpacity = 1.0
anglesLUT.Discretize = 1
anglesLUT.NumberOfTableValues = 256
anglesLUT.ScalarRangeInitialized = 1.0
anglesLUT.HSVWrap = 0
anglesLUT.VectorComponent = 0
anglesLUT.VectorMode = 'Magnitude'
anglesLUT.AllowDuplicateScalars = 1
anglesLUT.Annotations = []
anglesLUT.ActiveAnnotatedValues = []
anglesLUT.IndexedColors = []
anglesLUT.IndexedOpacities = []
# get opacity transfer function/opacity map for 'angles'
anglesPWF = GetOpacityTransferFunction('angles')
# anglesPWF.Points = [0.0, 0.05882352963089943, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
anglesPWF.AllowDuplicateScalars = 1
anglesPWF.UseLogScale = 0
anglesPWF.ScalarRangeInitialized = 1
# Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.3014705777168274, 0.5, 0.0, 0.33589355211648514, 0.625, 0.5, 0.0, 0.5680552565701278, 0.6691176295280457, 0.5, 0.0, 1.0471451860825267, 0.8676470518112183, 0.5, 0.0, 1.15586894219242, 0.6911764740943909, 0.5, 0.0, 1.5707963267948966, 0.8014705777168274, 0.5, 0.0]
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.037, 0.5, 1.0, 0.33589355211648514, 0.625, 0.5, 0.0, 0.5680552565701278, 0.6691176295280457, 0.5, 0.0, 1.0471451860825267, 0.8676470518112183, 0.5, 0.0, 1.15586894219242, 0.6911764740943909, 0.5, 0.0, 1.5707963267948966, 0.8014705777168274, 0.5, 0.0]
# Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.036764707416296005, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
anglesPWF.Points = [0.1, 0.136764707416296005, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
# rescale color and/or opacity maps used to exactly fit the current data range
transform1Display.RescaleTransferFunctionToDataRange(False, True)
# # Properties modified on anglesPWF
# # anglesPWF.Points = [0.0, 0.036764707416296005, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0570768117917348, 1.0, 0.5, 0.0, 1.1558689421924027, 0.9852941036224365, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.7705793380737305, 0.9779411554336548, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.7656397223472595, 0.9926470518112183, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.9779411554336548, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.9411764740943909, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.904411792755127, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.7573529481887817, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.7426470518112183, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.6838235259056091, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.6764705777168274, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.5955882668495178, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.5735294222831726, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.43382352590560913, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.4264705777168274, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.3897058963775635, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.36764705181121826, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.29411765933036804, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.2867647111415863, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.2647058963775635, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.25, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.2132352888584137, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.1985294073820114, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.16911764442920685, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.1617647111415863, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.13235294818878174, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.11029411852359772, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.10294117778539658, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.09558823704719543, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.06617647409439087, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.05882352963089943, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.05147058889269829, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.036764707416296005, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.029411764815449715, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.06617647409439087, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.07352941483259201, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.05147058889269829, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.04411764815449715, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
#
# # Properties modified on anglesPWF
# anglesPWF.Points = [0.0, 0.036764707416296005, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
# Properties modified on anglesLUT
anglesLUT.EnableOpacityMapping = 0
anglesLUT.EnableOpacityMapping = 1
## ---- AXES GRID PROPERTIES -----
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.Visibility = 1
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.XTitle = ' $\\theta_\\rho$ '
renderView1.AxesGrid.YTitle = ' $\\theta_\\mu$ '
renderView1.AxesGrid.ZTitle = ' $\\theta$ '
# renderView1.AxesGrid.XTitleFontSize = 45 #24
# renderView1.AxesGrid.YTitleFontSize = 45
# renderView1.AxesGrid.ZTitleFontSize = 45
# renderView1.AxesGrid.XLabelFontSize = 30 #default:12
# renderView1.AxesGrid.YLabelFontSize = 30
# renderView1.AxesGrid.ZLabelFontSize = 30
renderView1.AxesGrid.XTitleFontSize = 65 #24
renderView1.AxesGrid.YTitleFontSize = 65
renderView1.AxesGrid.ZTitleFontSize = 65
renderView1.AxesGrid.XLabelFontSize = 45 #default:12
renderView1.AxesGrid.YLabelFontSize = 45
renderView1.AxesGrid.ZLabelFontSize = 45
# ---- Switch of/on OrientationAXES:
# renderView1.OrientationAxesVisibility = 1
renderView1.OrientationAxesVisibility = 0
# rv = GetRenderView()
# renderView1.OrientationAxesLabelColor = [0.5, 0.5, 0.5]
# Render()
# ---- Switch Grid On/Off:
renderView1.AxesGrid.ShowGrid = 1
# # reset view to fit data
# renderView1.ResetCamera()
## Properties modified on renderView1.AxesGrid
## -- COLOR/Font-Size OF AXES-TITLE:
## -- Green:
# renderView1.AxesGrid.XTitleColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098]
# renderView1.AxesGrid.YTitleColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098]
# renderView1.AxesGrid.ZTitleColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098]
## -- White:
# renderView1.AxesGrid.XTitleColor = [1.0, 1.0, 1.0]
# renderView1.AxesGrid.YTitleColor = [1.0, 1.0, 1.0]
# renderView1.AxesGrid.ZTitleColor = [1.0, 1.0, 1.0]
# Properties modified on renderView1.AxesGrid
# --- Change FontSize of Values on Axis:
# # --- Change Color of Values on Axis:
## -- Green:
# # renderView1.AxesGrid.XLabelColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098]
# # renderView1.AxesGrid.YLabelColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098]
# # renderView1.AxesGrid.ZLabelColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098]
## -- White:
renderView1.AxesGrid.XLabelColor = [1.0, 1.0, 1.0]
renderView1.AxesGrid.YLabelColor = [1.0, 1.0, 1.0]
renderView1.AxesGrid.ZLabelColor = [1.0, 1.0, 1.0]
## --- Render Axes only on certain Facets:
renderView1.AxesGrid.FacesToRender = 7
renderView1.AxesGrid.ShowEdges = 0
renderView1.AxesGrid.AxesToLabel = 24
## ----------- Scale Data on Axes:
renderView1.AxesGrid.DataScale = [0.025, 0.025, 1.0]
#
# # Properties modified on renderView1.AxesGrid
## ---------- Set Custom Axis-Labels:
renderView1.AxesGrid.XAxisUseCustomLabels = 1
renderView1.AxesGrid.ZAxisUseCustomLabels = 1
renderView1.AxesGrid.YAxisUseCustomLabels = 1
renderView1.AxesGrid.XAxisLabels = [-20, -15.0, -10.0, -5.0, 0.0, 5.0, 10.0, 15.0, 20.0]
# renderView1.AxesGrid.YAxisLabels = [0 , 10.0, 20.0, 30.0, 40.0]
# renderView1.AxesGrid.YAxisLabels = [1 ,5, 10.0,15, 20.0,25, 30.0,35, 40.0]
renderView1.AxesGrid.YAxisLabels = [1 , 10, 20, 30, 40]
# renderView1.AxesGrid.YAxisLabels = [0 ,5.0, 10.0, 15.0, 20.0, 25.0, 30.0,35.0, 40.0]
renderView1.AxesGrid.ZAxisLabels = [ 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
## ---- SET Center-Axis visible:
renderView1.CenterAxesVisibility = 0
# ----------------- CAMERA POSITION -----------------
# current camera placement for renderView1
# renderView1.CameraPosition = [0.9924119707463583, 3.796427396663517, 1.5103327925582364]
# renderView1.CameraFocalPoint = [0.0, 0.5002500000000001, 0.5]
# renderView1.CameraViewUp = [-0.03762445763524004, -0.2824789551065148, 0.9585353619505051]
# renderView1.CameraParallelScale = 0.93323050610355
renderView1.CameraPosition = [1.320702817430001, 3.4031687433379654, 1.5124027164700495]
renderView1.CameraFocalPoint = [5.999081648913413e-18, 0.5002500000000002, 0.4999999999999999]
renderView1.CameraViewUp = [-0.09506057625109621, -0.2889757851908078, 0.9526051030811066]
renderView1.CameraParallelScale = 0.8660254037844386
renderView1.EyeAngle = 0.0
renderView1.Update()
## uncomment the following to render all views # TODO ?
# RenderAllViews()
# # get active view
# # renderView1 = GetActiveViewOrCreate('RenderView')
# ----------------- DRAW LINE -----------------
if drawLine:
# create a new 'Line'
line1 = Line()
# show data in view
line1Display = Show(line1, renderView1)
# set active source
SetActiveSource(line1)
# Properties modified on line1
line1.Point1 = [0.25, 0.25, 0.0]
line1.Point2 = [0.25, 0.25, 1.0]
# Properties modified on line1Display
# line1Display.LineWidth = 2.0
line1Display.LineWidth = 4.0
# change solid color
line1Display.AmbientColor = [1.0, 1.0, 0.4980392156862745]
line1Display.DiffuseColor = [1.0, 1.0, 0.4980392156862745]
# toggle 3D widget visibility (only when running from the GUI)
Show3DWidgets(proxy=line1)
# update the view to ensure updated data information
renderView1.Update()
# # reset view to fit data
# renderView1.ResetCamera()
# ----------------- DRAW Plane -----------------
# # create a new 'Plane'
# plane2 = Plane()
# plane2.Origin = [0.0, 0.0, 0.0]
# plane2.Point1 = [0.0, 0.0, 1.0]
# plane2.Point2 = [0.0, 1.0, 0.0]
# plane2.XResolution = 1
# plane2.YResolution = 1
#
# # show data in view
# plane2Display = Show(plane2, renderView1)
# ----------------- LEGEND -----------------
# get color legend/bar for anglesLUT in view renderView1
anglesLUTColorBar = GetScalarBar(anglesLUT, renderView1)
# Properties modified on anglesLUTColorBar
anglesLUTColorBar.WindowLocation = 'LowerRightCorner'
anglesLUTColorBar.HorizontalTitle = 1
anglesLUTColorBar.Title = 'angle $\\alpha$' #'angle $\\angle$'
anglesLUTColorBar.TextPosition = 'Ticks left/bottom, annotations right/top'
anglesLUTColorBar.TitleJustification = 'Left'
# anglesLUTColorBar.TitleJustification = 'Centered'
# show color bar/color legend
# transform1Display.SetScalarBarVisibility(renderView1, True)
# # # Properties modified on anglesLUTColorBar
anglesLUTColorBar.AutomaticAnnotations = 0
anglesLUTColorBar.AddRangeLabels = 0
anglesLUTColorBar.DrawTickMarks = 0
anglesLUTColorBar.DrawTickLabels = 0
anglesLUTColorBar.TitleFontSize = 24
anglesLUTColorBar.LabelFontSize = 20
# anglesLUTColorBar.AddRangeAnnotations = 1
## -- Add Annotations :
anglesLUT.Annotations = ['1.57', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0']
anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0]
anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0, 1.0]
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
# # get color legend/bar for anglesLUT in view renderView1
# anglesLUTColorBar = GetScalarBar(anglesLUT, renderView1)
#
# if case == 1:
# ## In Hyperbolic Case only two angles occur...
# # Use discrete Color map:
# # # Properties modified on anglesLUT
# # anglesLUT.InterpretValuesAsCategories = 1
# # anglesLUT.AnnotationsInitialized = 1
# #
# #
# #
# # # Properties modified on anglesLUT
# # anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0']
# # # Properties modified on anglesLUT
# # anglesLUT.IndexedColors = [1.0, 0.10196078431372549, 0.023529411764705882, 0.03137254901960784, 0.03137254901960784, 1.0]
# # # Properties modified on anglesLUT
# # anglesLUT.IndexedOpacities = [1.0, 0.015]
# # # get active view
# # renderView1 = GetActiveViewOrCreate('RenderView')
# # # uncomment following to set a specific view size
# # # renderView1.ViewSize = [997, 905]
# #
# # # get display properties
# transform1Display = GetDisplayProperties(transform1, view=renderView1)
# print('Hyperbolic Case (case1)')
#
# # get color transfer function/color map for 'angles'
# anglesLUT = GetColorTransferFunction('angles')
# anglesLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'"
# anglesLUT.InterpretValuesAsCategories = 1
# anglesLUT.AnnotationsInitialized = 1
# anglesLUT.ShowCategoricalColorsinDataRangeOnly = 0
# anglesLUT.RescaleOnVisibilityChange = 0
# anglesLUT.EnableOpacityMapping = 1
# anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843]
# anglesLUT.UseLogScale = 0
# anglesLUT.ColorSpace = 'Diverging'
# anglesLUT.UseBelowRangeColor = 0
# anglesLUT.BelowRangeColor = [0.0, 0.0, 0.0]
# anglesLUT.UseAboveRangeColor = 0
# anglesLUT.AboveRangeColor = [0.5, 0.5, 0.5]
# anglesLUT.NanColor = [1.0, 1.0, 0.0]
# anglesLUT.NanOpacity = 1.0
# anglesLUT.Discretize = 1
# anglesLUT.NumberOfTableValues = 256
# anglesLUT.ScalarRangeInitialized = 1.0
# anglesLUT.HSVWrap = 0
# anglesLUT.VectorComponent = 0
# anglesLUT.VectorMode = 'Magnitude'
# anglesLUT.AllowDuplicateScalars = 1
# anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0']
# anglesLUT.ActiveAnnotatedValues = []
# anglesLUT.IndexedColors = [1.0, 0.10196078431372549, 0.023529411764705882, 0.03137254901960784, 0.03137254901960784, 1.0]
# anglesLUT.IndexedOpacities = [1.0, 0.015]
#
# # Properties modified on anglesLUT
# anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0']
# anglesLUT.IndexedColors = [1.0, 0.10196078431372549, 0.023529411764705882, 1.0, 0.10196078431372549, 0.023529411764705882]
# anglesLUT.IndexedOpacities = [1.0, -1.0]
#
# # get opacity transfer function/opacity map for 'angles'
# anglesPWF = GetOpacityTransferFunction('angles')
# anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
# anglesPWF.AllowDuplicateScalars = 1
# anglesPWF.UseLogScale = 0
# anglesPWF.ScalarRangeInitialized = 1
#
# # Properties modified on anglesLUT
# anglesLUT.IndexedColors = [1.0, 0.10196078431372549, 0.023529411764705882, 0.07450980392156863, 0.043137254901960784, 1.0]
#
# # Properties modified on anglesLUT
# anglesLUT.IndexedOpacities = [1.0, 0.01]
#
# # get active source.
# transform1 = GetActiveSource()
#
# # get active view
# renderView1 = GetActiveViewOrCreate('RenderView')
# # uncomment following to set a specific view size
# # renderView1.ViewSize = [1257, 934]
#
# # get display properties
# transform1Display = GetDisplayProperties(transform1, view=renderView1)
#
# # Properties modified on transform1Display
# transform1Display.Opacity = 0.2
#
# transform1Display.GaussianRadius = 0.02
#
# # Properties modified on anglesLUT
# anglesLUT.IndexedOpacities = [1.0, 0.017]
# elseif case == 2:
#
#
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
# get color transfer function/color map for 'angles'
anglesLUT = GetColorTransferFunction('angles')
anglesLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'"
anglesLUT.InterpretValuesAsCategories = 0
anglesLUT.AnnotationsInitialized = 0
anglesLUT.ShowCategoricalColorsinDataRangeOnly = 0
anglesLUT.RescaleOnVisibilityChange = 0
anglesLUT.EnableOpacityMapping = 1
anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843]
anglesLUT.UseLogScale = 0
anglesLUT.ColorSpace = 'Diverging'
anglesLUT.UseBelowRangeColor = 0
anglesLUT.BelowRangeColor = [0.0, 0.0, 0.0]
anglesLUT.UseAboveRangeColor = 0
anglesLUT.AboveRangeColor = [0.5, 0.5, 0.5]
anglesLUT.NanColor = [1.0, 1.0, 0.0]
anglesLUT.NanOpacity = 1.0
anglesLUT.Discretize = 1
anglesLUT.NumberOfTableValues = 256
anglesLUT.ScalarRangeInitialized = 1.0
anglesLUT.HSVWrap = 0
anglesLUT.VectorComponent = 0
anglesLUT.VectorMode = 'Magnitude'
anglesLUT.AllowDuplicateScalars = 1
anglesLUT.Annotations = ['1.57', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0']
anglesLUT.ActiveAnnotatedValues = []
anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0]
anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0, 1.0]
# get opacity transfer function/opacity map for 'angles'
anglesPWF = GetOpacityTransferFunction('angles')
anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
anglesPWF.AllowDuplicateScalars = 1
anglesPWF.UseLogScale = 0
anglesPWF.ScalarRangeInitialized = 1
# Properties modified on anglesLUT
anglesLUT.InterpretValuesAsCategories = 1
anglesLUT.AnnotationsInitialized = 1
# Properties modified on anglesLUT
anglesLUT.Annotations = ['1.57', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0', '1.5707963267948966', '1.5708']
# Properties modified on anglesLUT
anglesLUT.Annotations = ['1.57', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0']
anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0]
anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0]
# Properties modified on anglesLUT
anglesLUT.Annotations = ['1.57', '$\\pi / 2$', '0', '0']
anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0]
anglesLUT.IndexedOpacities = [1.0, 1.0]
# Properties modified on anglesLUT
anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0']
# Properties modified on anglesLUT
anglesLUT.IndexedColors = [1.0, 0.0, 0.0, 1.0, 0.0, 0.0]
# Properties modified on anglesLUT
anglesLUT.IndexedColors = [1.0, 0.0, 0.0, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882]
# Properties modified on anglesLUT
anglesLUT.IndexedColors = [0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882]
# Properties modified on anglesLUT
anglesLUT.IndexedOpacities = [1.0, 0.02]
# Properties modified on anglesLUT
anglesLUT.IndexedOpacities = [1.0, 0.05]
# Properties modified on anglesLUT
anglesLUT.IndexedOpacities = [1.0, 0.1]
# NEW:
anglesLUT.IndexedOpacities = [0.1, 1.0]
# Properties modified on anglesLUT
anglesLUT.IndexedColors = [0.8313725490196079, 0.0196078431372549, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882]
# get opacity transfer function/opacity map for 'angles'
anglesPWF = GetOpacityTransferFunction('angles')
anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
anglesPWF.ScalarRangeInitialized = 1
# Properties modified on anglesLUT
anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882]
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
# if hide_redcolor:
#
# # get active source.
# transform1 = GetActiveSource()
#
# # get active view
# renderView1 = GetActiveViewOrCreate('RenderView')
# # uncomment following to set a specific view size
# # renderView1.ViewSize = [1257, 934]
#
# # get display properties
# transform1Display = GetDisplayProperties(transform1, view=renderView1)
#
# # Properties modified on transform1Display
# transform1Display.Opacity = 1.0
#
# # get color transfer function/color map for 'angles'
# anglesLUT = GetColorTransferFunction('angles')
# anglesLUT.InterpretValuesAsCategories = 1
# anglesLUT.AnnotationsInitialized = 1
# anglesLUT.EnableOpacityMapping = 1
# anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843]
# anglesLUT.ScalarRangeInitialized = 1.0
# anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0', '1.5707963267948966', '1.5708']
# anglesLUT.ActiveAnnotatedValues = ['0']
# anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882]
# anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0, 1.0]
#
# # get opacity transfer function/opacity map for 'angles'
# anglesPWF = GetOpacityTransferFunction('angles')
# anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
# anglesPWF.ScalarRangeInitialized = 1
#
# # Properties modified on anglesLUT
# anglesLUT.IndexedOpacities = [0.0, 1.0, 1.0, 1.0]
# # ----------------- LEGEND -----------------
# get color transfer function/color map for 'angles'
anglesLUT = GetColorTransferFunction('angles')
anglesLUT.InterpretValuesAsCategories = 1
anglesLUT.AnnotationsInitialized = 1
anglesLUT.EnableOpacityMapping = 1
anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843]
anglesLUT.ScalarRangeInitialized = 1.0
anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0', '1.5707963267948966', '1.5708']
anglesLUT.ActiveAnnotatedValues = ['0']
anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882]
anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0, 1.0]
# Properties modified on anglesLUT
anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0']
anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725]
anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0]
# get opacity transfer function/opacity map for 'angles'
anglesPWF = GetOpacityTransferFunction('angles')
anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
anglesPWF.ScalarRangeInitialized = 1
# Properties modified on anglesLUT
# anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0']
anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$']
anglesLUT.IndexedColors = [0.8313725490196079, 0.0]
anglesLUT.IndexedOpacities = [0.1, 1.0]
# get active source.
# transform1 = GetActiveSource()
#
# # get active view
# renderView1 = GetActiveViewOrCreate('RenderView')
# # uncomment following to set a specific view size
# # renderView1.ViewSize = [1257, 934]
#
# # get display properties
# transform1Display = GetDisplayProperties(transform1, view=renderView1)
#
# # Properties modified on transform1Display
# transform1Display.Opacity = 1.0
#
# # Properties modified on anglesLUT
# anglesLUT.IndexedOpacities = [0.0, 1.0]
#
# # Properties modified on anglesLUT
# anglesLUT.IndexedColors = [0.8196078431372549, 0.8313725490196079, 0.8274509803921568, 0.12549019607843137, 0.0, 0.3803921568627451]
#
# # Properties modified on anglesLUT
# anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 0.12549019607843137, 0.0, 0.3803921568627451]
#
# # Properties modified on anglesLUT
# anglesLUT.IndexedColors = [0.0, 0.0, 0.0, 0.12549019607843137, 0.0, 0.3803921568627451]
#
# # Properties modified on anglesLUT
# anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 0.12549019607843137, 0.0, 0.3803921568627451]
if hide_redcolor:
# get color transfer function/color map for 'angles'
anglesLUT = GetColorTransferFunction('angles')
anglesLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'"
anglesLUT.InterpretValuesAsCategories = 1
anglesLUT.AnnotationsInitialized = 1
anglesLUT.ShowCategoricalColorsinDataRangeOnly = 0
anglesLUT.RescaleOnVisibilityChange = 0
anglesLUT.EnableOpacityMapping = 1
anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843]
anglesLUT.UseLogScale = 0
anglesLUT.ColorSpace = 'Diverging'
anglesLUT.UseBelowRangeColor = 0
anglesLUT.BelowRangeColor = [0.0, 0.0, 0.0]
anglesLUT.UseAboveRangeColor = 0
anglesLUT.AboveRangeColor = [0.5, 0.5, 0.5]
anglesLUT.NanColor = [1.0, 1.0, 0.0]
anglesLUT.NanOpacity = 1.0
anglesLUT.Discretize = 1
anglesLUT.NumberOfTableValues = 256
anglesLUT.ScalarRangeInitialized = 1.0
anglesLUT.HSVWrap = 0
anglesLUT.VectorComponent = 0
anglesLUT.VectorMode = 'Magnitude'
anglesLUT.AllowDuplicateScalars = 1
anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0', '1.5707963267948966', '1.5708']
anglesLUT.ActiveAnnotatedValues = ['0']
anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.8313725490196079, 0.0, 0.0392156862745098]
anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0, 1.0]
# Properties modified on anglesLUT
anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0']
anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.8313725490196079, 0.0, 0.0392156862745098]
anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0]
# get opacity transfer function/opacity map for 'angles'
anglesPWF = GetOpacityTransferFunction('angles')
anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0]
anglesPWF.AllowDuplicateScalars = 1
anglesPWF.UseLogScale = 0
anglesPWF.ScalarRangeInitialized = 1
# Properties modified on anglesLUT
anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0']
anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451]
anglesLUT.IndexedOpacities = [0.1, 1.0]
# Properties modified on anglesLUT
anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 0.12549019607843137, 0.0, 0.3803921568627451]
# Properties modified on anglesLUT
anglesLUT.IndexedOpacities = [0.0, 1.0]
# get active source.
transform1 = GetActiveSource()
# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
# uncomment following to set a specific view size
# renderView1.ViewSize = [1257, 934]
# get display properties
transform1Display = GetDisplayProperties(transform1, view=renderView1)
# Properties modified on transform1Display
transform1Display.Opacity = 1.0
# #TEST: (only for 100SP..)
# anglesLUT.IndexedOpacities = [1.0, 0.03]
# transform1Display.Opacity = 0.1 #overall Opacity
# Properties modified on anglesLUT
anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 1.0, 0.0, 0.0]
# get opacity transfer function/opacity map for 'angles'
anglesPWF = GetOpacityTransferFunction('angles')
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.11764705926179886, 0.5, 0.0]
anglesPWF.ScalarRangeInitialized = 1
# # Apply a preset using its name. Note this may not work as expected when presets have duplicate names.
# anglesLUT.ApplyPreset('jet', True)
#
# # Apply a preset using its name. Note this may not work as expected when presets have duplicate names.
# anglesLUT.ApplyPreset('jet', True)
#
# # Apply a preset using its name. Note this may not work as expected when presets have duplicate names.
# anglesLUT.ApplyPreset('jet', True)
#
# # Apply a preset using its name. Note this may not work as expected when presets have duplicate names.
# anglesLUT.ApplyPreset('jet', True)
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Properties modified on anglesLUT
anglesLUT.RGBPoints = [0.0, 0.0, 0.0, 0.5625, 0.17453275066650778, 0.0, 0.0, 1.0, 0.5734655375881175, 0.0, 1.0, 1.0, 0.7729315383498405, 0.5, 1.0, 0.5, 0.9723975391115637, 1.0, 1.0, 0.0, 1.3713303260331735, 1.0, 0.0, 0.0, 1.5707963267948966, 0.6588235294117647, 0.0, 0.0]
# Properties modified on anglesPWF
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.15441176295280457, 0.5, 0.0]
# Properties modified on anglesPWF
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.11764705926179886, 0.5, 0.0]
# Properties modified on anglesPWF
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.10294117778539658, 0.5, 0.0]
# Properties modified on anglesPWF
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.07352941483259201, 0.5, 0.0]
# Properties modified on anglesPWF
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.08088235557079315, 0.5, 0.0]
# Properties modified on anglesPWF
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.0882352963089943, 0.5, 0.0]
# Properties modified on anglesPWF
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.09558823704719543, 0.5, 0.0]
# Properties modified on anglesPWF
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.10294117778539658, 0.5, 0.0]
# Properties modified on anglesPWF
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.11029411852359772, 0.5, 0.0]
# Properties modified on anglesPWF
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.09558823704719543, 0.5, 0.0]
# Properties modified on anglesPWF
anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.13235294818878174, 0.5, 0.0]
###-- ALTERNATIVE WARM TO COOL :
# Apply a preset using its name. Note this may not work as expected when presets have duplicate names.
anglesLUT.ApplyPreset('Warm to Cool (Extended)', True)