| 1 |
< |
# SCCSid "$SunId$ LBL" |
| 1 |
> |
# RCSid: $Id$ |
| 2 |
|
# |
| 3 |
|
# Choose the Rad Input File to work on. |
| 4 |
|
# |
| 5 |
|
|
| 6 |
|
proc preen {} { # clean up radvar |
| 7 |
|
global radvar rifname |
| 8 |
< |
foreach n {objects scene materials illum mkillum render oconv pfilt |
| 9 |
< |
RAWFILE ZFILE AMBFILE OPTFILE EXPOSURE ZONE REPORT} { |
| 8 |
> |
foreach n {objects scene materials illum mkillum mkpmap render oconv rvu rpict pfilt |
| 9 |
> |
RAWFILE ZFILE AMBFILE PGMAP PCMAP OPTFILE EXPOSURE ZONE REPORT} { |
| 10 |
|
if {! [info exists radvar($n)]} { |
| 11 |
|
set radvar($n) {} |
| 12 |
|
} |
| 83 |
|
mat* { eval lappend radvar(materials) $vval } |
| 84 |
|
ill* { eval lappend radvar(illum) $vval } |
| 85 |
|
mki* { eval lappend radvar(mkillum) $vval } |
| 86 |
+ |
mkp* { eval lappend radvar(mkpmap) $vval } |
| 87 |
|
ren* { eval lappend radvar(render) $vval } |
| 88 |
|
oco* { eval lappend radvar(oconv) $vval } |
| 89 |
+ |
rvu { eval lappend radvar(rvu) $vval } |
| 90 |
+ |
rpi* { eval lappend radvar(rpict) $vval } |
| 91 |
|
pf* { eval lappend radvar(pfilt) $vval } |
| 92 |
|
vi* { lappend radvar(view) $vval } |
| 93 |
|
ZO* { set radvar(ZONE) $vval } |
| 107 |
|
REP* { set radvar(REPORT) $vval } |
| 108 |
|
RAW* { set radvar(RAWFILE) $vval } |
| 109 |
|
ZF* {set radvar(ZFILE) $vval } |
| 110 |
+ |
PGM* {set radvar(PGMAP) $vval } |
| 111 |
+ |
PCM* {set radvar(PCMAP) $vval } |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
} |
| 128 |
|
} |
| 129 |
|
if {[lsearch -exact {ZONE QUALITY OCTREE PICTURE AMBFILE OPTFILE |
| 130 |
|
EXPOSURE RESOLUTION UP INDIRECT DETAIL PENUMBRAS |
| 131 |
< |
EYESEP RAWFILE ZFILE VARIABILITY REPORT} $vn] >= 0} { |
| 131 |
> |
EYESEP RAWFILE ZFILE VARIABILITY REPORT |
| 132 |
> |
PGMAP PCMAP} $vn] >= 0} { |
| 133 |
|
puts $fi "$vn= $radvar($vn)" |
| 134 |
|
return |
| 135 |
|
} |
| 159 |
|
if {"$vl" == "all" && ! [chksave]} {return 0} |
| 160 |
|
set curmess {Please wait...} |
| 161 |
|
update |
| 162 |
< |
if [catch {exec rad -n -w -e $f >& /usr/tmp/ro[pid]}] { |
| 163 |
< |
set curmess [exec cat /usr/tmp/ro[pid]] |
| 164 |
< |
exec rm -f /usr/tmp/ro[pid] |
| 162 |
> |
if [catch {exec rad -n -w -e $f >& /tmp/ro[pid]}] { |
| 163 |
> |
set curmess [exec cat /tmp/ro[pid]] |
| 164 |
> |
exec rm -f /tmp/ro[pid] |
| 165 |
|
return 0 |
| 166 |
|
} |
| 167 |
< |
set fi [open /usr/tmp/ro[pid] r] |
| 167 |
> |
set fi [open /tmp/ro[pid] r] |
| 168 |
|
if {"$vl" == "all"} { |
| 169 |
|
catch {unset radvar} |
| 170 |
|
while {[gets $fi curli] != -1} { |
| 197 |
|
} |
| 198 |
|
set alldone [eof $fi] |
| 199 |
|
close $fi |
| 200 |
< |
exec rm -f /usr/tmp/ro[pid] |
| 200 |
> |
exec rm -f /tmp/ro[pid] |
| 201 |
|
preen |
| 202 |
|
return 1 |
| 203 |
|
} |