Skip to content

Instantly share code, notes, and snippets.

@hoolymama
Created February 16, 2010 17:16
Show Gist options
  • Save hoolymama/305694 to your computer and use it in GitHub Desktop.
Save hoolymama/305694 to your computer and use it in GitHub Desktop.
window;
columnLayout;
textField "nodeTF";
showWindow;
textField -e -cc "showMatches(\"nodeTF\")" "nodeTF";
global proc showMatches ( string $tf) {
string $allNodeTypes[] = `ls -nt`;
string $text = `textField -q -text $tf`;
string $result[];
for ($t in $allNodeTypes) {
if (`gmatch $t ($text+"*")`) {
$result[`size $result`] = $t ;
}
}
print $result;
print "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment