summaryrefslogtreecommitdiffstats
path: root/tools/trackeditor/code/scripts/te_BVContext.mel
blob: e835468042a7b27e24d128c0ed04c481d90d405a (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
//-----------------------------------------------------------------------------
// Copyright (C) 2001 Radical Entertainment Ltd.  All rights reserved.
//
// te_BVContext.mel
//
// Description: Defines all the scripts required by the BVContext tool
//              As a convention all Terrain Editor global procedures 
//              and global variables are prefixed with "te_".  All commands 
//              exposed through TE plugins are prefixed with "TE_".
//
//              MCB = Menu Call Back
//              BCB = Button Call Back
//
// Modification History:
//  + Created -- CBrisebois
//-----------------------------------------------------------------------------

//This is the global instance of the bv context tool.

global proc te_MCB_StartBVLoop()
{
    //Start the BV context...
    if ( ! `contextInfo -exists BVCtx` ) 
    {
        BVContext BVCtx;
    }

    setToolTo BVCtx;
}

global proc te_MCB_SplitSelectedBV()
{
    //Call the API function.
    BVSplitSelected();
}

global proc te_Delete_BVContext()
{
    if ( `contextInfo -exists BVCtx` )
    {
        deleteUI -toolContext BVCtx;
    }
}