summaryrefslogtreecommitdiffstats
path: root/tools/MayaTools/Maya4.0/scripts/AETemplates/AETEShowRoadSegButton.mel
blob: 3ffbeb549b6aa0e9da00f4b849173bf02e3b2c7f (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
global proc AETEShowRoadSegNew( string $nodeName )
{
    columnLayout -adj true;

        select $nodeName;
        string $names[] = `ls -sl -o`;

        string $command = "te_MCB_ShowRoadFromSelected()";

		button -label "Show Road Segments" -command $command TEShowRoadSegsButton;

    setParent ..;

    select $names[0];
}


global proc AETEShowRoadSegReplace( string $nodeName )
{

    select $nodeName;
    string $names[] = `ls -sl -o`;

    string $command = "te_MCB_ShowRoadFromSelected";

    button -e -command $command TEShowRoadSegsButton;

    select $names[0];
}