Last change
on this file since 28897 was 28897, checked in by davidb, 10 years ago |
GUI front-end to server base plus web page content
|
File size:
1.2 KB
|
Line | |
---|
1 | // ThreeJsExportScript.mel
|
---|
2 | // Author: Chris Lewis
|
---|
3 | // Email: [email protected]
|
---|
4 |
|
---|
5 | global proc int ThreeJsExportScript(string $parent, string $action, string $settings, string $callback)
|
---|
6 | {
|
---|
7 | if ($action == "post")
|
---|
8 | {
|
---|
9 | setParent $parent;
|
---|
10 | columnLayout -adj true;
|
---|
11 | checkBox -v true -l "Vertices" vertsCb;
|
---|
12 | checkBox -v true -l "Faces" facesCb;
|
---|
13 | checkBox -v true -l "Normals" normalsCb;
|
---|
14 | checkBox -v true -l "UVs" uvsCb;
|
---|
15 | checkBox -v false -l "Material Indices" materialsCb;
|
---|
16 | checkBox -v false -l "Colors" colorsCb;
|
---|
17 | }
|
---|
18 | else if ($action == "query")
|
---|
19 | {
|
---|
20 | string $option = "\"";
|
---|
21 | if (`checkBox -q -v vertsCb`)
|
---|
22 | $option += "vertices ";
|
---|
23 | if (`checkBox -q -v facesCb`)
|
---|
24 | $option += "faces ";
|
---|
25 | if (`checkBox -q -v normalsCb`)
|
---|
26 | $option += "normals ";
|
---|
27 | if (`checkBox -q -v uvsCb`)
|
---|
28 | $option += "uvs ";
|
---|
29 | if (`checkBox -q -v materialsCb`)
|
---|
30 | $option += "materials ";
|
---|
31 | if (`checkBox -q -v colorsCb`)
|
---|
32 | $option += "colors ";
|
---|
33 | $option += "\"";
|
---|
34 | eval($callback + $option);
|
---|
35 | }
|
---|
36 | return 1;
|
---|
37 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.