Skip to content

Instantly share code, notes, and snippets.

@tlancon
Last active June 11, 2018 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlancon/fd7528863df5f86ff2165ec51c8c6355 to your computer and use it in GitHub Desktop.
Save tlancon/fd7528863df5f86ff2165ec51c8c6355 to your computer and use it in GitHub Desktop.
Compares to selected datasets in Amira/Avizo
# 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