blob: 0b46abbddad49974179ec50ed34aedfdccebc30f (
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
|
global float $gWB_Offset = 0;
global proc wb_BCB_CreateLocator( string $type )
{
//Start the Locator context...
if ( ! `contextInfo -exists LocatorCtx` )
{
LocatorContext LocatorCtx;
}
WB_SetLocatorType($type);
setToolTo LocatorCtx;
}
global proc wb_MCB_SnapLocatorOptions()
{
global float $gWB_Offset;
if ( `window -exists wb_OptionWindow` ) deleteUI wb_OptionWindow;
window -title "Snap Locator Options" wb_OptionWindow;
columnLayout;
rowLayout -nc 2;
text -label "Offset (M):";
floatField -min -10.0 -max 10.0 -value $gWB_Offset -cc ("$gWB_Offset = #1");
setParent ..;
button -label "snap locator" -command "WB_SnapLocator( $gWB_Offset )";
setParent ..;
showWindow;
}
global proc wb_BCB_AttachTriggers( string $name, int $isVisibler )
{
global int $gIsItVisibler;
$gIsItVisibler = $isVisibler;
//Start the Trigger context...
if ( ! `contextInfo -exists TriggerCtx` )
{
TriggerContext TriggerCtx;
}
select $name;
WB_SelectObject( $name );
setToolTo TriggerCtx;
}
global proc wb_LocatorCleanup()
{
if ( `contextInfo -exists LocatorCtx` )
{
deleteUI -tc LocatorCtx;
}
if ( `contextInfo -exists TriggerCtx` )
{
deleteUI -tc TriggerCtx;
}
}
|