# Avizo Project 201930
# AvizoForIndustrialInspection
# Generated by AvizoForIndustrialInspection 2019.3-beta-3
remove -all
remove "labels256.am" "physics.icol" "labels.am" "Label.am" "Label.to-labelfield-16_bits" "Result" "Result.Label-Analysis" "Result-BoundingBoxDy" "Convert Image Type" "Local Axes" "Arithmetic" "Label Analysis" "Label to Attribute" "Volume Rendering Settings" "Volume Rendering"

# Create viewers
viewer setVertical 0

viewer 0 setTransparencyType 6
viewer 0 setAutoRedraw 0
viewer 0 show
mainWindow show

_units setUnitsManagementMode 1
_units setDisplayCoordinatesUnit mm
_units setWorkingCoordinatesUnit mm

set hideNewModules 1
[ load ${SCRIPTDIR}/Length_Analysis-files/labels256.am ] setLabel "labels256.am"
"labels256.am" setIconPosition 0 0
"labels256.am" setNoRemoveAll 1
"labels256.am" setVar "CustomHelp" {HxColormap256}
"labels256.am" fire
"labels256.am" setMinMax 1 254
"labels256.am" flags setValue 1
"labels256.am" shift setMinMax -1 1
"labels256.am" shift setButtons 0
"labels256.am" shift setEditButton 1
"labels256.am" shift setIncrement 0.133333
"labels256.am" shift setValue 0
"labels256.am" shift setSubMinMax -1 1
"labels256.am" scale setMinMax 0 1
"labels256.am" scale setButtons 0
"labels256.am" scale setEditButton 1
"labels256.am" scale setIncrement 0.1
"labels256.am" scale setValue 1
"labels256.am" scale setSubMinMax 0 1
"labels256.am" fire
"labels256.am" setViewerMask 16383

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

set hideNewModules 1
[ load ${SCRIPTDIR}/Length_Analysis-files/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}/Length_Analysis-files/Label.am ] setLabel "Label.am"
"Label.am" setIconPosition 251 185
"Label.am" sharedColormap connect "labels.am"
"Label.am" sharedColormap setDefaultColor 0.8 0.8 0.8
"Label.am" sharedColormap setDefaultAlpha 0.500000
"Label.am" sharedColormap activateLocalRange 1
"Label.am" sharedColormap setLocalMinMax 1.000000 8.000000
"Label.am" sharedColormap enableAlpha 1
"Label.am" sharedColormap enableAlphaToggle 1
"Label.am" sharedColormap setAutoAdjustRangeMode 1
"Label.am" sharedColormap setColorbarMinMax 1 8
"Label.am" fire
"Label.am" primary setIndex 0 0
"Label.am" fire
"Label.am" setViewerMask 16383

set hideNewModules 0
create HxCastField "Convert Image Type"
"Convert Image Type" setIconPosition 48 216
"Convert Image Type" setVar "CustomHelp" {HxCastField}
"Convert Image Type" data connect "Label.am"
"Convert Image Type" colormap connect "labels256.am"
"Convert Image Type" colormap setDefaultColor 1 0.8 0.5
"Convert Image Type" colormap setDefaultAlpha 0.500000
"Convert Image Type" colormap activateLocalRange 1
"Convert Image Type" colormap setLocalMinMax 1.000000 254.000000
"Convert Image Type" colormap enableAlpha 1
"Convert Image Type" colormap enableAlphaToggle 1
"Convert Image Type" colormap setAutoAdjustRangeMode 1
"Convert Image Type" colormap setColorbarMinMax 1 254
"Convert Image Type" fire
"Convert Image Type" outputType setIndex 0 7
"Convert Image Type" scaling setMinMax 0 -3.40282346638529e+038 3.40282346638529e+038
"Convert Image Type" scaling setValue 0 1
"Convert Image Type" scaling setMinMax 1 -3.40282346638529e+038 3.40282346638529e+038
"Convert Image Type" scaling setValue 1 0
"Convert Image Type" voxelGridOptions setValue 0 1
"Convert Image Type" voxelGridOptions setToggleVisible 0 1
"Convert Image Type" colorFieldOptions setIndex 0 0
"Convert Image Type" applyTransformToResult 1
"Convert Image Type" fire
"Convert Image Type" setViewerMask 16383
"Convert Image Type" setPickable 1

set hideNewModules 0
[ load -unit mm ${SCRIPTDIR}/Length_Analysis-files/Label.to-labelfield-16_bits ] setLabel "Label.to-labelfield-16_bits"
"Label.to-labelfield-16_bits" setIconPosition 243 269
"Label.to-labelfield-16_bits" master connect "Convert Image Type" "result" 0
"Label.to-labelfield-16_bits" sharedColormap connect "labels.am"
"Label.to-labelfield-16_bits" sharedColormap setDefaultColor 0.8 0.8 0.8
"Label.to-labelfield-16_bits" sharedColormap setDefaultAlpha 0.500000
"Label.to-labelfield-16_bits" sharedColormap activateLocalRange 1
"Label.to-labelfield-16_bits" sharedColormap setLocalMinMax 1.000000 8.000000
"Label.to-labelfield-16_bits" sharedColormap enableAlpha 1
"Label.to-labelfield-16_bits" sharedColormap enableAlphaToggle 1
"Label.to-labelfield-16_bits" sharedColormap setAutoAdjustRangeMode 1
"Label.to-labelfield-16_bits" sharedColormap setColorbarMinMax 1 8
"Label.to-labelfield-16_bits" fire
"Label.to-labelfield-16_bits" primary setIndex 0 0
"Label.to-labelfield-16_bits" fire
"Label.to-labelfield-16_bits" setViewerMask 16383

set hideNewModules 0
create HxAxis "Local Axes"
"Local Axes" setIconPosition 518 186
"Local Axes" setVar "CustomHelp" {HxAxis}
"Local Axes" data connect "Label.am"
"Local Axes" fire
"Local Axes" axis setValue 0 1
"Local Axes" axis setToggleVisible 0 1
"Local Axes" axis setValue 1 1
"Local Axes" axis setToggleVisible 1 1
"Local Axes" axis setValue 2 1
"Local Axes" axis setToggleVisible 2 1
"Local Axes" options setValue 0 1
"Local Axes" options setToggleVisible 0 1
"Local Axes" options setValue 1 0
"Local Axes" options setToggleVisible 1 1
"Local Axes" thickness setMinMax 1 15
"Local Axes" thickness setButtons 0
"Local Axes" thickness setEditButton 1
"Local Axes" thickness setIncrement 0.933333
"Local Axes" thickness setValue 1
"Local Axes" thickness setSubMinMax 1 15
"Local Axes" color setColor 0 1 0 0
"Local Axes" color setColor 1 0 1 0
"Local Axes" color setColor 2 0 0 1
"Local Axes" color setColor 3 1 1 1
"Local Axes" axisNames setState {text 1 "x" text 3 "y" text 5 "z" }
"Local Axes" textOnOff setValue 1
"Local Axes" font setState {name: "MS Shell Dlg 2" size: 10 buttonText: Select bold: 0 italic: 0 color: 0.8 0.8 0.8}
"Local Axes" fire
"Local Axes" setBoundingBox 0 1555 0 188 0 49
"Local Axes" setDelta 0 
"Local Axes" setLocalMode 0 
"Local Axes" setFlip 0 0 
"Local Axes" setFlip 1 0 
"Local Axes" setFlip 2 0 
"Local Axes" fire
"Local Axes" setViewerMask 16383
"Local Axes" setPickable 1

set hideNewModules 0
create HxArithmetic "Arithmetic"
"Arithmetic" setIconPosition 104 297
"Arithmetic" setVar "CustomHelp" {HxArithmetic}
"Arithmetic" inputA connect "Label.to-labelfield-16_bits"
"Arithmetic" fire
"Arithmetic" resultChannels setIndex 0 0
"Arithmetic" nValues setMinMax 0 -16777216 16777216
"Arithmetic" nValues setValue 0 1
"Arithmetic" expr0 setState {A*i}
"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
[ load -unit mm ${SCRIPTDIR}/Length_Analysis-files/Result ] setLabel "Result"
"Result" setIconPosition 251 341
"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" sharedColormap setColorbarMinMax 1 8
"Result" fire
"Result" primary setIndex 0 0
"Result" fire
"Result" setViewerMask 16383

set hideNewModules 0
create HxAnalyzeLabels "Label Analysis"
"Label Analysis" setIconPosition 90 393
"Label Analysis" setVar "CustomHelp" {HxAnalyzeLabels}
"Label Analysis" data connect "Result"
"Label Analysis" fire
"Label Analysis" interpretation setValue 1
"Label Analysis" sequenceMode setValue 0
labelMeasure setAttributes feret2d 0 18 36 54 72 90 108 126 144 162
labelMeasure setAttributes feret3d 31
labelMeasure setAttributes cooccurrence 0 0
labelMeasure setAttributes histogram 1 0 255 1
labelMeasure setAttributes quantile 0.1 0.1 0.1 0.1 0.1 0.1
labelMeasure setAttributes breadth3d 10
labelMeasure setAttributes neighborCount 0 5 0
"Label Analysis" measures setState {"BoundingBox" BoundingBoxDx BoundingBoxDy BoundingBoxDz}
"Label Analysis" showAnalysis setValue 0 1
"Label Analysis" showAnalysis setToggleVisible 0 1
"Label Analysis" applyTransformToResult 1
"Label Analysis" fire
"Label Analysis" setViewerMask 16383
"Label Analysis" setPickable 1

set hideNewModules 0
[ load ${SCRIPTDIR}/Length_Analysis-files/Result.Label-Analysis ] setLabel "Result.Label-Analysis"
"Result.Label-Analysis" setIconPosition 245 442
"Result.Label-Analysis" master connect "Label Analysis" "AnlOut" 0
"Result.Label-Analysis" fire
"Result.Label-Analysis" fire
"Result.Label-Analysis" setViewerMask 16383

set hideNewModules 0
create HxConvertLabelToAttribute "Label to Attribute"
"Label to Attribute" setIconPosition 71 475
"Label to Attribute" setVar "CustomHelp" {HxConvertLabelToAttribute}
"Label to Attribute" data connect "Result.Label-Analysis"
"Label to Attribute" labelImg connect "Result"
"Label to Attribute" fire
"Label to Attribute" table setIndex 0 0
"Label to Attribute" attribute setIndex 0 1
"Label to Attribute" labelsClmn setIndex 0 0
"Label to Attribute" paddingValue setState {item 0 0 item 1 0 }
"Label to Attribute" applyTransformToResult 1
"Label to Attribute" fire
"Label to Attribute" setViewerMask 16383
"Label to Attribute" setPickable 1

set hideNewModules 0
[ load -unit mm ${SCRIPTDIR}/Length_Analysis-files/Result-BoundingBoxDy ] setLabel "Result-BoundingBoxDy"
"Result-BoundingBoxDy" setIconPosition 247 515
"Result-BoundingBoxDy" master connect "Label to Attribute" "result" 0
"Result-BoundingBoxDy" sharedColormap disconnect
"Result-BoundingBoxDy" sharedColormap setDefaultColor 0.8 0.8 0.8
"Result-BoundingBoxDy" sharedColormap setDefaultAlpha 0.500000
"Result-BoundingBoxDy" sharedColormap activateLocalRange 1
"Result-BoundingBoxDy" sharedColormap setLocalMinMax 0.000000 1.000000
"Result-BoundingBoxDy" sharedColormap enableAlpha 1
"Result-BoundingBoxDy" sharedColormap enableAlphaToggle 1
"Result-BoundingBoxDy" sharedColormap setAutoAdjustRangeMode 1
"Result-BoundingBoxDy" sharedColormap setColorbarMinMax -1555 1
"Result-BoundingBoxDy" fire
"Result-BoundingBoxDy" fire
"Result-BoundingBoxDy" setViewerMask 16383
"Result-BoundingBoxDy" select

set hideNewModules 0
create HxVolumeRenderingSettings "Volume Rendering Settings"
"Volume Rendering Settings" setViewerMask 0
"Volume Rendering Settings" setIconPosition 568 515
"Volume Rendering Settings" setVar "CustomHelp" {HxVolumeRenderingSettings}
set hideNewModules 0

"Volume Rendering Settings" data connect "Result-BoundingBoxDy"
"Volume Rendering Settings" fire
"Volume Rendering Settings" rendering setValue 1
"Volume Rendering Settings" fire
"Volume Rendering Settings" interpolationAdvanced setValue 1
"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 0.5
"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 1
"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 HxVolumeRender2 "Volume Rendering"
"Volume Rendering" setIconPosition 568 541
"Volume Rendering" setVar "CustomHelp" {HxVolumeRender2}
"Volume Rendering" data connect "Result-BoundingBoxDy"
"Volume Rendering" volumeRenderingSettings connect "Volume Rendering Settings"
"Volume Rendering" fire
"Volume Rendering" colormap connect "physics.icol.am"
"Volume Rendering" colormap setDefaultColor 1 1 1
"Volume Rendering" colormap setDefaultAlpha 0.500000
"Volume Rendering" colormap activateLocalRange 1
"Volume Rendering" colormap setLocalMinMax 19.810486 164.488678
"Volume Rendering" colormap enableAlpha 1
"Volume Rendering" colormap enableAlphaToggle 1
"Volume Rendering" colormap setAutoAdjustRangeMode 1
"Volume Rendering" colormap setColorbarMinMax -188 196.055
"Volume Rendering" fire
"Volume Rendering" colormapLookup setValue 2
"Volume Rendering" gamma setMinMax 0.100000001490116 8
"Volume Rendering" gamma setButtons 0
"Volume Rendering" gamma setEditButton 1
"Volume Rendering" gamma setIncrement 0.526667
"Volume Rendering" gamma setValue 3
"Volume Rendering" gamma setSubMinMax 0.100000001490116 8
"Volume Rendering" alphaScale setMinMax 0 1
"Volume Rendering" alphaScale setButtons 0
"Volume Rendering" alphaScale setEditButton 1
"Volume Rendering" alphaScale setIncrement 0.1
"Volume Rendering" alphaScale setValue 1
"Volume Rendering" alphaScale setSubMinMax 0 1
"Volume Rendering" channelSelector setState {2 }
"Volume Rendering" fire
"Volume Rendering" setViewerMask 16383
"Volume Rendering" setPickable 1

set hideNewModules 0

viewer 0 setCameraOrientation -0.750057 -0.499624 -0.433347 1.0137
viewer 0 setCameraPosition 19.1357 1219.27 1135.45
viewer 0 setCameraFocalDistance 1680.48
viewer 0 setCameraNearDistance 1141.76
viewer 0 setCameraFarDistance 2146.39
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

Result.Label-Analysis table hit
Result.Label-Analysis fire
theObjectPool setSelectionOrder Result-BoundingBoxDy
