|
Importing files through TCLBox and RIBBox
Using a TCLBox and RIBBOX random rib
files were imported and applied to proxy objects.


RIBBOX Script

TCLBox Script
Linked TCL Script
proc fileGet { dir ext } {
set fileList [glob -nocomplain -directory $dir *$ext]
set listLength [ llength $fileList ]
# puts $listLength
set randomFile [ lindex $fileList [ expr int([ expr rand()*$listLength ]) ] ]
}
|