1 |
|
#!/usr/local/bin/wish4.0 |
2 |
< |
# SCCSid "$SunId$ LBL" |
2 |
> |
# RCSid: $Id$ |
3 |
|
# |
4 |
|
# TCL/TK-based Rad Input File Editor |
5 |
|
# |
11 |
|
|
12 |
|
set auto_path [linsert $auto_path 0 $radlib] |
13 |
|
|
14 |
+ |
# Assign global globbing variables |
15 |
+ |
|
16 |
+ |
set myglob(rif) *.rif |
17 |
+ |
set myglob(materials) *.mat |
18 |
+ |
set myglob(illum) *.rad |
19 |
+ |
set myglob(scene) *.rad |
20 |
+ |
set myglob(objects) * |
21 |
+ |
|
22 |
|
# Create required procedures |
23 |
|
|
24 |
|
proc modified {} { # check for radvar modification |
184 |
|
} elseif {[llength $argv] == 1} { |
185 |
|
cd [file dirname $argv] |
186 |
|
set curfile [file tail $argv] |
187 |
< |
if {! [file exists $curfile]} { |
188 |
< |
newnew $curfile |
189 |
< |
.scene invoke |
187 |
> |
if {! [file isfile $curfile]} { |
188 |
> |
if [newnew $curfile] { |
189 |
> |
.scene invoke |
190 |
> |
} else { |
191 |
> |
.file invoke |
192 |
> |
} |
193 |
|
} elseif {[newload $curfile]} { |
194 |
|
if $alldone { |
195 |
|
set curmess "All renderings are finished." |