# Avizo Project 202020
# AvizoForIndustrialInspection
# Generated by AvizoForIndustrialInspection 2020.2
remove -all
remove "physics.icol" "labels.am" "motor.labels.am" "Result" "Result_Sum_ZMax" "Result_Sum_YMax" "Arithmetic" "Volume Projection" "Volume Rendering Settings" "Voxelized Rendering" "Height Map Slice" "Volume Projection 2" "Height Map Slice 2"

# Create viewers
viewer setVertical 0

viewer 0 setTransparencyType 5
viewer 0 setAutoRedraw 0
viewer 0 show
mainWindow show

_units setUnitsManagementMode 1
_units setDisplayCoordinatesUnit µm
_units setWorkingCoordinatesUnit µm

set hideNewModules 1
[ load ${AMIRA_ROOT}/data/colormaps/physics.icol ] setLabel "physics.icol"
"physics.icol" setIconPosition 0 0
"physics.icol" setNoRemoveAll 1
"physics.icol" fire
"physics.icol" setMinMax 0 1
"physics.icol" flags setValue 1
"physics.icol" shift setMinMax -1 1
"physics.icol" shift setButtons 0
"physics.icol" shift setEditButton 1
"physics.icol" shift setIncrement 0.133333
"physics.icol" shift setValue 0
"physics.icol" shift setSubMinMax -1 1
"physics.icol" scale setMinMax 0 1
"physics.icol" scale setButtons 0
"physics.icol" scale setEditButton 1
"physics.icol" scale setIncrement 0.1
"physics.icol" scale setValue 1
"physics.icol" scale setSubMinMax 0 1
"physics.icol" fire
"physics.icol" setViewerMask 16383

set hideNewModules 1
[ load ${AMIRA_ROOT}/data/colormaps/labels.am ] setLabel "labels.am"
"labels.am" setIconPosition 0 0
"labels.am" setNoRemoveAll 1
"labels.am" setVar "CustomHelp" {HxColormap256}
"labels.am" fire
"labels.am" setMinMax 1 8
"labels.am" flags setValue 1
"labels.am" shift setMinMax -1 1
"labels.am" shift setButtons 0
"labels.am" shift setEditButton 1
"labels.am" shift setIncrement 0.133333
"labels.am" shift setValue 0
"labels.am" shift setSubMinMax -1 1
"labels.am" scale setMinMax 0 1
"labels.am" scale setButtons 0
"labels.am" scale setEditButton 1
"labels.am" scale setIncrement 0.1
"labels.am" scale setValue 1
"labels.am" scale setSubMinMax 0 1
"labels.am" fire
"labels.am" setViewerMask 16383

set hideNewModules 0
[ load -unit mm ${SCRIPTDIR}/VolumeProjection-files/motor.labels.am ] setLabel "motor.labels.am"
"motor.labels.am" setIconPosition 20 10
"motor.labels.am" setVar "CustomXML" {motor.labels.am_config.xml}
"motor.labels.am" sharedColormap connect "labels.am"
"motor.labels.am" sharedColormap setDefaultColor 0.8 0.8 0.8
"motor.labels.am" sharedColormap setDefaultAlpha 0.500000
"motor.labels.am" sharedColormap activateLocalRange 1
"motor.labels.am" sharedColormap setLocalMinMax 1.000000 8.000000
"motor.labels.am" sharedColormap enableAlpha 1
"motor.labels.am" sharedColormap enableAlphaToggle 1
"motor.labels.am" sharedColormap setAutoAdjustRangeMode 1
"motor.labels.am" fire
"motor.labels.am" primary setIndex 0 0
"motor.labels.am" fire
"motor.labels.am" setViewerMask 16383

set hideNewModules 0
create HxArithmetic "Arithmetic"
"Arithmetic" setIconPosition 160 10
"Arithmetic" setVar "CustomHelp" {HxArithmetic}
"Arithmetic" setVar "CustomXML" {HxArithmetic_config.xml}
"Arithmetic" inputA connect "motor.labels.am"
"Arithmetic" fire
"Arithmetic" resultChannels setIndex 0 0
"Arithmetic" nValues setMinMax 0 -16777216 16777216
"Arithmetic" nValues setValue 0 1
"Arithmetic" expr0 setState {A>0}
"Arithmetic" resultType setValue 0
"Arithmetic" resultLocation setValue 0
"Arithmetic" resolution setMinMax 0 1 100000
"Arithmetic" resolution setValue 0 64
"Arithmetic" resolution setMinMax 1 1 100000
"Arithmetic" resolution setValue 1 64
"Arithmetic" resolution setMinMax 2 1 100000
"Arithmetic" resolution setValue 2 64
"Arithmetic" minBox setMinMax 0 -3.40282346638529e+038 3.40282346638529e+038
"Arithmetic" minBox setValue 0 -1
"Arithmetic" minBox setMinMax 1 -3.40282346638529e+038 3.40282346638529e+038
"Arithmetic" minBox setValue 1 -1
"Arithmetic" minBox setMinMax 2 -3.40282346638529e+038 3.40282346638529e+038
"Arithmetic" minBox setValue 2 -1
"Arithmetic" maxBox setMinMax 0 -3.40282346638529e+038 3.40282346638529e+038
"Arithmetic" maxBox setValue 0 1
"Arithmetic" maxBox setMinMax 1 -3.40282346638529e+038 3.40282346638529e+038
"Arithmetic" maxBox setValue 1 1
"Arithmetic" maxBox setMinMax 2 -3.40282346638529e+038 3.40282346638529e+038
"Arithmetic" maxBox setValue 2 1
"Arithmetic" options setValue 0 0
"Arithmetic" options setToggleVisible 0 1
"Arithmetic" applyTransformToResult 1
"Arithmetic" fire
"Arithmetic" setViewerMask 16383
"Arithmetic" setPickable 1

set hideNewModules 0
[ {Arithmetic} create result ] setLabel "Result"
"Result" setIconPosition 20 44
"Result" master connect "Arithmetic" "result" 0
"Result" sharedColormap connect "labels.am"
"Result" sharedColormap setDefaultColor 0.8 0.8 0.8
"Result" sharedColormap setDefaultAlpha 0.500000
"Result" sharedColormap activateLocalRange 1
"Result" sharedColormap setLocalMinMax 1.000000 8.000000
"Result" sharedColormap enableAlpha 1
"Result" sharedColormap enableAlphaToggle 1
"Result" sharedColormap setAutoAdjustRangeMode 1
"Result" fire
"Result" primary setIndex 0 0
"Result" fire
"Result" setViewerMask 16383

set hideNewModules 0
[create "Volume Projection"] setLabel "Volume Projection"
"Volume Projection" setIconPosition 156 68
"Volume Projection" setVar "CustomHelp" {VolumeProjection.html}
"Volume Projection" setVar "CustomXML" {VolumeProjection_config.xml}
"Volume Projection" data connect "Result"
"Volume Projection" fire
"Volume Projection" direction setValue 2
"Volume Projection" projection_side setValue 1
"Volume Projection" operation setIndex 0 2
"Volume Projection" outputType setIndex 0 5
"Volume Projection" applyTransformToResult 1
"Volume Projection" fire
"Volume Projection" setViewerMask 16383
"Volume Projection" setPickable 1

set hideNewModules 0
[ {Volume Projection} create result ] setLabel "Result_Sum_ZMax"
"Result_Sum_ZMax" setIconPosition 15 107
"Result_Sum_ZMax" setVar "CustomHelp" {HxUniformScalarField3}
"Result_Sum_ZMax" setVar "CustomXML" {HxUniformScalarField3_config.xml}
"Result_Sum_ZMax" master connect "Volume Projection" "result" 0
"Result_Sum_ZMax" sharedColormap disconnect
"Result_Sum_ZMax" sharedColormap setDefaultColor 0.8 0.8 0.8
"Result_Sum_ZMax" sharedColormap setDefaultAlpha 0.500000
"Result_Sum_ZMax" sharedColormap activateLocalRange 1
"Result_Sum_ZMax" sharedColormap setLocalMinMax 0.000000 1.000000
"Result_Sum_ZMax" sharedColormap enableAlpha 1
"Result_Sum_ZMax" sharedColormap enableAlphaToggle 1
"Result_Sum_ZMax" sharedColormap setAutoAdjustRangeMode 1
"Result_Sum_ZMax" fire
"Result_Sum_ZMax" setViewerMask 16383

set hideNewModules 0
create HxVolumeRenderingSettings "Volume Rendering Settings"
"Volume Rendering Settings" setViewerMask 0
"Volume Rendering Settings" setIconPosition 291 13
"Volume Rendering Settings" setVar "CustomHelp" {HxVolumeRenderingSettings}
"Volume Rendering Settings" setVar "CustomXML" {HxVolumeRenderingSettings_config.xml}
set hideNewModules 0

"Volume Rendering Settings" data connect "Result"
"Volume Rendering Settings" fire
"Volume Rendering Settings" rendering setValue 1
"Volume Rendering Settings" fire
"Volume Rendering Settings" interpolationAdvanced setValue 0
"Volume Rendering Settings" composition setValue 0
"Volume Rendering Settings" moveLowResolutionScale setMinMax 1 10
"Volume Rendering Settings" moveLowResolutionScale setButtons 1
"Volume Rendering Settings" moveLowResolutionScale setEditButton 1
"Volume Rendering Settings" moveLowResolutionScale setIncrement 1
"Volume Rendering Settings" moveLowResolutionScale setValue 2
"Volume Rendering Settings" moveLowResolutionScale setSubMinMax 1 10
"Volume Rendering Settings" samplingQuality setMinMax 0 2
"Volume Rendering Settings" samplingQuality setButtons 0
"Volume Rendering Settings" samplingQuality setEditButton 1
"Volume Rendering Settings" samplingQuality setIncrement 0.133333
"Volume Rendering Settings" samplingQuality setValue 1
"Volume Rendering Settings" samplingQuality setSubMinMax 0 2
"Volume Rendering Settings" opacityThreshold setMinMax 0 1
"Volume Rendering Settings" opacityThreshold setButtons 0
"Volume Rendering Settings" opacityThreshold setEditButton 1
"Volume Rendering Settings" opacityThreshold setIncrement 0.05
"Volume Rendering Settings" opacityThreshold setValue 0
"Volume Rendering Settings" opacityThreshold setSubMinMax 0 1
"Volume Rendering Settings" optimizations setValue 0 0
"Volume Rendering Settings" optimizations setToggleVisible 0 1
"Volume Rendering Settings" optimizations setValue 1 1
"Volume Rendering Settings" optimizations setToggleVisible 1 1
"Volume Rendering Settings" optimizations setValue 2 0
"Volume Rendering Settings" optimizations setToggleVisible 2 1
"Volume Rendering Settings" quality setValue 3
"Volume Rendering Settings" fire
"Volume Rendering Settings" artifactsReduction setValue 0 0
"Volume Rendering Settings" artifactsReduction setToggleVisible 0 1
"Volume Rendering Settings" artifactsReduction setValue 1 0
"Volume Rendering Settings" artifactsReduction setToggleVisible 1 1
"Volume Rendering Settings" lighting setState {item 0 1 item 1 0 }
"Volume Rendering Settings" gradient setState {item 0 1 item 2 9.99999974737875e-05 }
"Volume Rendering Settings" effects setValue 0 0
"Volume Rendering Settings" effects setToggleVisible 0 1
"Volume Rendering Settings" effects setValue 1 0
"Volume Rendering Settings" effects setToggleVisible 1 1
"Volume Rendering Settings" effects setValue 2 0
"Volume Rendering Settings" effects setToggleVisible 2 1
"Volume Rendering Settings" effects setValue 3 0
"Volume Rendering Settings" effects setToggleVisible 3 1
"Volume Rendering Settings" edgeEnhancement setMinMax 0 -3.40282346638529e+038 3.40282346638529e+038
"Volume Rendering Settings" edgeEnhancement setValue 0 9.99999974737875e-005
"Volume Rendering Settings" edge2D setState {item 1 0.100000001490116 item 3 0.100000001490116 item 5 1 }
"Volume Rendering Settings" boundaryOpacity setMinMax 0 -3.40282346638529e+038 3.40282346638529e+038
"Volume Rendering Settings" boundaryOpacity setValue 0 2.5
"Volume Rendering Settings" boundaryOpacity setMinMax 1 -3.40282346638529e+038 3.40282346638529e+038
"Volume Rendering Settings" boundaryOpacity setValue 1 2.5
"Volume Rendering Settings" material setIndex 0 4
"Volume Rendering Settings" lightingStyle setIndex 0 1
"Volume Rendering Settings" toneMapping setIndex 0 0
"Volume Rendering Settings" depthOfField setValue 0
"Volume Rendering Settings" blurFactor setMinMax 0.00999999977648258 1
"Volume Rendering Settings" blurFactor setButtons 0
"Volume Rendering Settings" blurFactor setEditButton 1
"Volume Rendering Settings" blurFactor setIncrement 0.066
"Volume Rendering Settings" blurFactor setValue 0.01
"Volume Rendering Settings" blurFactor setSubMinMax 0.00999999977648258 1
"Volume Rendering Settings" specularColor setMinMax 0 1
"Volume Rendering Settings" specularColor setButtons 0
"Volume Rendering Settings" specularColor setEditButton 1
"Volume Rendering Settings" specularColor setIncrement 0.1
"Volume Rendering Settings" specularColor setValue 0.4
"Volume Rendering Settings" specularColor setSubMinMax 0 1
"Volume Rendering Settings" shininess setMinMax 0 1
"Volume Rendering Settings" shininess setButtons 0
"Volume Rendering Settings" shininess setEditButton 1
"Volume Rendering Settings" shininess setIncrement 0.1
"Volume Rendering Settings" shininess setValue 0.4
"Volume Rendering Settings" shininess setSubMinMax 0 1
"Volume Rendering Settings" fire
"Volume Rendering Settings" setViewerMask 16383
"Volume Rendering Settings" setPickable 1

set hideNewModules 0
create HxVoxelizedRender "Voxelized Rendering"
"Voxelized Rendering" setIconPosition 291 37
"Voxelized Rendering" setVar "CustomHelp" {HxVoxelizedRender}
"Voxelized Rendering" setVar "CustomXML" {HxVoxelizedRender_config.xml}
"Voxelized Rendering" data connect "Result"
"Voxelized Rendering" volumeRenderingSettings connect "Volume Rendering Settings"
"Voxelized Rendering" fire
"Voxelized Rendering" colormap connect "labels.am"
"Voxelized Rendering" colormap setDefaultColor 1 1 1
"Voxelized Rendering" colormap setDefaultAlpha 0.500000
"Voxelized Rendering" colormap activateLocalRange 1
"Voxelized Rendering" colormap setLocalMinMax 1.000000 8.000000
"Voxelized Rendering" colormap enableAlpha 1
"Voxelized Rendering" colormap enableAlphaToggle 1
"Voxelized Rendering" colormap setAutoAdjustRangeMode 1
"Voxelized Rendering" fire
"Voxelized Rendering" colormapLookup setValue 2
"Voxelized Rendering" gamma setMinMax 0.100000001490116 8
"Voxelized Rendering" gamma setButtons 0
"Voxelized Rendering" gamma setEditButton 1
"Voxelized Rendering" gamma setIncrement 0.526667
"Voxelized Rendering" gamma setValue 3
"Voxelized Rendering" gamma setSubMinMax 0.100000001490116 8
"Voxelized Rendering" alphaScale setMinMax 0 1
"Voxelized Rendering" alphaScale setButtons 0
"Voxelized Rendering" alphaScale setEditButton 1
"Voxelized Rendering" alphaScale setIncrement 0.1
"Voxelized Rendering" alphaScale setValue 1
"Voxelized Rendering" alphaScale setSubMinMax 0 1
"Voxelized Rendering" channelSelector setState {2 }
"Voxelized Rendering" fire
"Voxelized Rendering" setViewerMask 16383
"Voxelized Rendering" setPickable 1

set hideNewModules 0
create HxHeightField "Height Map Slice"
"Height Map Slice" setIconPosition 287 107
"Height Map Slice" setVar "CustomHelp" {HxHeightField}
"Height Map Slice" setVar "CustomXML" {HxHeightField_config.xml}
"Height Map Slice" data connect "Result_Sum_ZMax"
"Height Map Slice" colormap connect "physics.icol"
"Height Map Slice" colormap setDefaultColor 1 0.1 0.1
"Height Map Slice" colormap setDefaultAlpha 0.500000
"Height Map Slice" colormap activateLocalRange 1
"Height Map Slice" colormap setLocalMinMax 0.000000 123.000000
"Height Map Slice" colormap enableAlpha 1
"Height Map Slice" colormap enableAlphaToggle 1
"Height Map Slice" colormap setAutoAdjustRangeMode 1
"Height Map Slice" colormap setColorbarMinMax 0 123
"Height Map Slice" fire
"Height Map Slice" drawStyle setValue 1
"Height Map Slice" fire
"Height Map Slice" drawStyle setSpecularLighting 1
"Height Map Slice" drawStyle setTexture 0
"Height Map Slice" drawStyle setAlphaMode 1
"Height Map Slice" drawStyle setCullingMode 0
"Height Map Slice" drawStyle setNormalBinding 1
"Height Map Slice" drawStyle setSortingMode 1
"Height Map Slice" drawStyle setLineWidth 1.000000
"Height Map Slice" drawStyle setOutlineColor 0 0 0.2
"Height Map Slice" textureWrap setIndex 0 1
"Height Map Slice" sliceOrientation setValue 0
"Height Map Slice" sliceNumber setMinMax 0 0
"Height Map Slice" sliceNumber setButtons 1
"Height Map Slice" sliceNumber setEditButton 1
"Height Map Slice" sliceNumber setIncrement 1
"Height Map Slice" sliceNumber setValue 0
"Height Map Slice" sliceNumber setSubMinMax 0 0
"Height Map Slice" scale setMinMax -1 1
"Height Map Slice" scale setButtons 0
"Height Map Slice" scale setEditButton 1
"Height Map Slice" scale setIncrement 0.133333
"Height Map Slice" scale setValue 0.111111
"Height Map Slice" scale setSubMinMax -1 1
"Height Map Slice" offset setMinMax -123 123
"Height Map Slice" offset setButtons 0
"Height Map Slice" offset setEditButton 1
"Height Map Slice" offset setIncrement 16.4
"Height Map Slice" offset setValue 0
"Height Map Slice" offset setSubMinMax -123 123
"Height Map Slice" mapping setValue 0
"Height Map Slice" setLighting 1
"Height Map Slice" fire
"Height Map Slice" setViewerMask 16383
"Height Map Slice" setShadowStyle 3
"Height Map Slice" setPickable 1

set hideNewModules 0
[create "Volume Projection"] setLabel "Volume Projection 2"
"Volume Projection 2" setIconPosition 160 141
"Volume Projection 2" setVar "CustomHelp" {VolumeProjection.html}
"Volume Projection 2" setVar "CustomXML" {VolumeProjection_config.xml}
"Volume Projection 2" data connect "Result"
"Volume Projection 2" fire
"Volume Projection 2" direction setValue 1
"Volume Projection 2" projection_side setValue 1
"Volume Projection 2" operation setIndex 0 2
"Volume Projection 2" outputType setIndex 0 5
"Volume Projection 2" applyTransformToResult 1
"Volume Projection 2" fire
"Volume Projection 2" setViewerMask 16383
"Volume Projection 2" setPickable 1

set hideNewModules 0
[ {Volume Projection 2} create result ] setLabel "Result_Sum_YMax"
"Result_Sum_YMax" setIconPosition 20 175
"Result_Sum_YMax" setVar "CustomHelp" {HxUniformScalarField3}
"Result_Sum_YMax" master connect "Volume Projection 2" "result" 0
"Result_Sum_YMax" sharedColormap disconnect
"Result_Sum_YMax" sharedColormap setDefaultColor 0.8 0.8 0.8
"Result_Sum_YMax" sharedColormap setDefaultAlpha 0.500000
"Result_Sum_YMax" sharedColormap activateLocalRange 1
"Result_Sum_YMax" sharedColormap setLocalMinMax 0.000000 1.000000
"Result_Sum_YMax" sharedColormap enableAlpha 1
"Result_Sum_YMax" sharedColormap enableAlphaToggle 1
"Result_Sum_YMax" sharedColormap setAutoAdjustRangeMode 1
"Result_Sum_YMax" fire
"Result_Sum_YMax" setViewerMask 16383

set hideNewModules 0
create HxHeightField "Height Map Slice 2"
"Height Map Slice 2" setIconPosition 285 178
"Height Map Slice 2" setVar "CustomHelp" {HxHeightField}
"Height Map Slice 2" setVar "CustomXML" {HxHeightField_config.xml}
"Height Map Slice 2" data connect "Result_Sum_YMax"
"Height Map Slice 2" colormap connect "physics.icol"
"Height Map Slice 2" colormap setDefaultColor 1 0.1 0.1
"Height Map Slice 2" colormap setDefaultAlpha 0.500000
"Height Map Slice 2" colormap activateLocalRange 1
"Height Map Slice 2" colormap setLocalMinMax 0.000000 225.000000
"Height Map Slice 2" colormap enableAlpha 1
"Height Map Slice 2" colormap enableAlphaToggle 1
"Height Map Slice 2" colormap setAutoAdjustRangeMode 1
"Height Map Slice 2" colormap setColorbarMinMax 0 225
"Height Map Slice 2" fire
"Height Map Slice 2" drawStyle setValue 1
"Height Map Slice 2" fire
"Height Map Slice 2" drawStyle setSpecularLighting 1
"Height Map Slice 2" drawStyle setTexture 0
"Height Map Slice 2" drawStyle setAlphaMode 1
"Height Map Slice 2" drawStyle setCullingMode 0
"Height Map Slice 2" drawStyle setNormalBinding 1
"Height Map Slice 2" drawStyle setSortingMode 1
"Height Map Slice 2" drawStyle setLineWidth 1.000000
"Height Map Slice 2" drawStyle setOutlineColor 0 0 0.2
"Height Map Slice 2" textureWrap setIndex 0 1
"Height Map Slice 2" sliceOrientation setValue 1
"Height Map Slice 2" sliceNumber setMinMax 0 0
"Height Map Slice 2" sliceNumber setButtons 1
"Height Map Slice 2" sliceNumber setEditButton 1
"Height Map Slice 2" sliceNumber setIncrement 1
"Height Map Slice 2" sliceNumber setValue 0
"Height Map Slice 2" sliceNumber setSubMinMax 0 0
"Height Map Slice 2" scale setMinMax -1 1
"Height Map Slice 2" scale setButtons 0
"Height Map Slice 2" scale setEditButton 1
"Height Map Slice 2" scale setIncrement 0.133333
"Height Map Slice 2" scale setValue 0.209877
"Height Map Slice 2" scale setSubMinMax -1 1
"Height Map Slice 2" offset setMinMax -225 225
"Height Map Slice 2" offset setButtons 0
"Height Map Slice 2" offset setEditButton 1
"Height Map Slice 2" offset setIncrement 30
"Height Map Slice 2" offset setValue 0
"Height Map Slice 2" offset setSubMinMax -225 225
"Height Map Slice 2" mapping setValue 0
"Height Map Slice 2" setLighting 1
"Height Map Slice 2" fire
"Height Map Slice 2" setViewerMask 16383
"Height Map Slice 2" setShadowStyle 3
"Height Map Slice 2" setPickable 1

set hideNewModules 0

viewer 0 setCameraOrientation 0.18926 -0.46495 -0.864871 2.34059
viewer 0 setCameraPosition -540.192 1132.75 868.782
viewer 0 setCameraFocalDistance 1307.08
viewer 0 setCameraNearDistance 716.326
viewer 0 setCameraFarDistance 1794.05
viewer 0 setCameraType perspective
viewer 0 setCameraHeightAngle 44.9023
viewer 0 setAutoRedraw 1
viewer 0 redraw

correlationPanel closeTabs
correlationPanel setTabName 0 "Correlation 1"
correlationPanel 0 setLogScalingOnAxis 0 0
correlationPanel 0 setLogScalingOnAxis 1 0

histogramPanel closeTabs
histogramPanel setTabName 0 "Histogram 1"
histogramPanel 0 setLogScalingOnAxis 0 0
histogramPanel 0 setLogScalingOnAxis 1 1

