Last active
June 11, 2018 14:36
-
-
Save tlancon/fd7528863df5f86ff2165ec51c8c6355 to your computer and use it in GitHub Desktop.
Compares to selected datasets in Amira/Avizo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Copy/paste this into Avizo/Amira console | |
# 2. Select two datasets to compare and press Shift+F3 | |
# Note: Can change 'onKeyFX' to the desired keybinding | |
# Note: Requires Avizo (not Avizo Lite) or the XImagePAQ extension for Amira | |
proc onKeyShiftF3 {} { | |
if {[llength [all -selected]] != 2} { | |
echo "Please select two data objects." | |
} else { | |
set before [lindex [all -selected] 0] | |
set after [lindex [all -selected] 1] | |
set compareMod [create HxCompareLatticeData] | |
"$compareMod" inputA connect $before | |
"$compareMod" inputB connect $after | |
"$compareMod" fire | |
"$compareMod" doit hit; "$compareMod" fire | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment