//____________________________________________________________________________________ // some global variable to hold data between various odd callbacks, kinda a bit // easier than messing about with passing extra variables between callbacks. //____________________________________________________________________________________ // global string to hold the output filename global string $nameOfFileToExport; // use global string array to hold names of transforms to output global string $transformsToWangInFile[]; // this global array will hold the names of the t global string $transformsInOrderedList[]; // global variable used to determine how many tabs are required global int $indent = 0; //____________________________________________________________________________________ // proc : recursiveParentSelect // args : $transform - the name of transform // returns : // notes : recursively adds the parents of a given transform to the current // selection list until it hits the root node. Used to ensure // sensible data is exported. //____________________________________________________________________________________ proc recursiveParentSelect(string $transform) { // get a list of parents to this transform so that they can inturn be added // to the selection list // string $parents[] = `listRelatives -type transform -p $transform`; if(size($parents)>0) { // select the parents of this transform select -add $parents; // recursively select the parents of the parents for a laugh for($i=0;$i