blob: 973c0d4bb2c3fdcc35e08076a7a6abb104af6b32 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
global proc swapGeo (string $showGeo , string $hideGeo1, string $hideGeo2)
{
select -r ("*" + $showGeo + "only*");
//select -r ("*" + 02 + "only*");//
select -hi;
ShowSelectedObjects;
select -r ("*" + $hideGeo1 + "only*");
//select -r ("*" + 05 + "only*");//
select -add ("*" + $hideGeo2 + "only*");
//select -add ("*" + 05 + "only*");//
select -hi;
HideSelectedObjects;
select -cl;
};
proc ShowBVShapes ()
{
select -r "P3D_BVol*Shape*" ;
$select = `ls -sl`;
string $sel;
for ($sel in $select)
setAttr ($sel + ".visibility") 1;
};
//=============================================//
global proc selectDrawableOnly ()
{
$shapeSel = `ls -sl -s -v`;
select $shapeSel;
}
global proc hideDontlight ()
{
if ( `objExists "*dontlight*"` )
{
select -r "*dontlight*";
select -hi;
HideSelectedObjects;
}
else
{ warning("there are no objects that you don't want to light?"); };
};
global proc showDontlight ()
{
if ( `objExists "*dontlight*"` )
{
select -r "*dontlight*";
select -hi;
ShowSelectedObjects;
}
else
{ warning("there are no objects that you don't want to light?"); };
};
global proc selectVisGeo ()
{
if ( `objExists "*landmarks*"` )
{
select -add -vis "*landmarks*";
}
else
{
warning("there are no landmarks in your scene?");
};
select -add -vis "*gens*";
select -add -vis "*track*";
select -add -vis "*dynamics*";
select -hi;
}
;
//=============================================//
global proc bobPrelight ()
{
toggleMaterialMapping(0);polyGeoSampler -cs -ul -sf 1 -su -colorBlend "overwrite" -alphaBlend "overwrite"; toggleMaterialMapping(1);
}
;
//=============================================//
global proc showAndLight (string $wang, string $chung, string $fung)
{
swapGeo $wang $chung $fung;
hideDontlight;
selectVisGeo;
selectDrawableOnly;
bobPrelight;
showDontlight;
swapGeo $wang $chung $fung;
ShowBVShapes;
};
//showAndLight 06 03 03;//
//showAndLight 03 06 06;//
|