summaryrefslogtreecommitdiffstats
path: root/tools/trackeditor/code/AETemplates
diff options
context:
space:
mode:
Diffstat (limited to 'tools/trackeditor/code/AETemplates')
-rw-r--r--tools/trackeditor/code/AETemplates/AEIntersectionLocatorNodeTemplate.mel20
-rw-r--r--tools/trackeditor/code/AETemplates/AERoadNodeTemplate.mel29
-rw-r--r--tools/trackeditor/code/AETemplates/AETELocatorSuppress.mel37
-rw-r--r--tools/trackeditor/code/AETemplates/AETEShowRoadSegButton.mel29
-rw-r--r--tools/trackeditor/code/AETemplates/AETreelineShapeNodeTemplate.mel41
5 files changed, 156 insertions, 0 deletions
diff --git a/tools/trackeditor/code/AETemplates/AEIntersectionLocatorNodeTemplate.mel b/tools/trackeditor/code/AETemplates/AEIntersectionLocatorNodeTemplate.mel
new file mode 100644
index 0000000..740b05f
--- /dev/null
+++ b/tools/trackeditor/code/AETemplates/AEIntersectionLocatorNodeTemplate.mel
@@ -0,0 +1,20 @@
+global proc AEIntersectionLocatorNodeTemplate( string $nodeName )
+{
+
+ editorTemplate -beginScrollLayout;
+
+ editorTemplate -beginLayout "Intersection Attributes" -collapse 0;
+
+ editorTemplate -addControl "IntersectionType";
+
+ editorTemplate -endLayout;
+
+ editorTemplate -addExtraControls;
+
+ editorTemplate -endScrollLayout;
+
+ AEWBLocatorSuppress( $nodeName );
+
+ editorTemplate -suppress "localPosition";
+}
+ \ No newline at end of file
diff --git a/tools/trackeditor/code/AETemplates/AERoadNodeTemplate.mel b/tools/trackeditor/code/AETemplates/AERoadNodeTemplate.mel
new file mode 100644
index 0000000..27c4431
--- /dev/null
+++ b/tools/trackeditor/code/AETemplates/AERoadNodeTemplate.mel
@@ -0,0 +1,29 @@
+global proc AERoadNodeTemplate( string $nodeName )
+{
+
+ editorTemplate -beginScrollLayout;
+
+ editorTemplate -beginLayout "Road Attributes" -collapse 0;
+
+ editorTemplate -addControl "IntersectionStart";
+ editorTemplate -addControl "IntersectionEnd";
+ editorTemplate -addControl "density";
+ editorTemplate -addControl "speed";
+ editorTemplate -addControl "difficulty";
+ editorTemplate -addControl "shortCut";
+
+ editorTemplate -callCustom "AETEShowRoadSegNew"
+ "AETEShowRoadSegReplace"
+ "message";
+
+ editorTemplate -endLayout;
+
+ editorTemplate -addExtraControls;
+
+ editorTemplate -endScrollLayout;
+
+ AEWBLocatorSuppress( $nodeName );
+
+ editorTemplate -suppress "localPosition";
+}
+ \ No newline at end of file
diff --git a/tools/trackeditor/code/AETemplates/AETELocatorSuppress.mel b/tools/trackeditor/code/AETemplates/AETELocatorSuppress.mel
new file mode 100644
index 0000000..13a6d00
--- /dev/null
+++ b/tools/trackeditor/code/AETemplates/AETELocatorSuppress.mel
@@ -0,0 +1,37 @@
+global proc AETELocatorSuppress( string $nodeName )
+{
+ editorTemplate -suppress "inputTranslate";
+ editorTemplate -suppress "input";
+ editorTemplate -suppress "caching";
+ editorTemplate -suppress "nodeState";
+ editorTemplate -suppress "visibility";
+ editorTemplate -suppress "intermediateObject";
+ editorTemplate -suppress "template";
+ editorTemplate -suppress "ghosting";
+ editorTemplate -suppress "instObjGroups";
+ editorTemplate -suppress "compInstObjGroups";
+ editorTemplate -suppress "castsShadows";
+ editorTemplate -suppress "receiveShadows";
+ editorTemplate -suppress "depthJitter";
+ editorTemplate -suppress "motionBlur";
+ editorTemplate -suppress "renderInfo";
+ editorTemplate -suppress "primaryVisibility";
+ editorTemplate -suppress "visibleInReflections";
+ editorTemplate -suppress "visibleInRefractions";
+ editorTemplate -suppress "geometryAntialiasingOverride";
+ editorTemplate -suppress "antialiasingLevel";
+ editorTemplate -suppress "shadingSamplesOverride";
+ editorTemplate -suppress "shadingSamples";
+ editorTemplate -suppress "maxShadingSamples";
+ editorTemplate -suppress "volumeSamplesOverride";
+ editorTemplate -suppress "volumeSamples";
+ editorTemplate -suppress "maxVisibilitySamplesOverride";
+ editorTemplate -suppress "maxVisibilitySamples";
+ editorTemplate -suppress "boundingBoxScale";
+ editorTemplate -suppress "drawOverride";
+ editorTemplate -suppress "useObjectColor";
+ editorTemplate -suppress "objectColor";
+ editorTemplate -suppress "intermediateObject";
+ editorTemplate -suppress "visibility";
+ editorTemplate -suppress "lodVisibility";
+} \ No newline at end of file
diff --git a/tools/trackeditor/code/AETemplates/AETEShowRoadSegButton.mel b/tools/trackeditor/code/AETemplates/AETEShowRoadSegButton.mel
new file mode 100644
index 0000000..3ffbeb5
--- /dev/null
+++ b/tools/trackeditor/code/AETemplates/AETEShowRoadSegButton.mel
@@ -0,0 +1,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];
+} \ No newline at end of file
diff --git a/tools/trackeditor/code/AETemplates/AETreelineShapeNodeTemplate.mel b/tools/trackeditor/code/AETemplates/AETreelineShapeNodeTemplate.mel
new file mode 100644
index 0000000..766ed13
--- /dev/null
+++ b/tools/trackeditor/code/AETemplates/AETreelineShapeNodeTemplate.mel
@@ -0,0 +1,41 @@
+global proc AETreelineShapeNodeTemplate( string $nodeName )
+{
+
+ editorTemplate -beginScrollLayout;
+
+ editorTemplate -beginLayout "Treeline Attributes" -collapse false;
+
+ editorTemplate -addControl "material";
+
+ editorTemplate -addControl "uscale";
+
+ editorTemplate -addControl "height";
+
+ editorTemplate -suppress "colour";
+
+ editorTemplate -suppress "alpha";
+
+ editorTemplate -endLayout;
+
+ editorTemplate -addExtraControls;
+
+ editorTemplate -endScrollLayout;
+
+ AETELocatorSuppress( $nodeName );
+
+ editorTemplate -suppress "controlPoints";
+ editorTemplate -suppress "weights";
+ editorTemplate -suppress "uvSet";
+ editorTemplate -suppress "tweak";
+ editorTemplate -suppress "relativeTweak";
+ editorTemplate -suppress "currentUVSet";
+ editorTemplate -suppress "doubleSided";
+ editorTemplate -suppress "opposite";
+ editorTemplate -suppress "smoothShading";
+ editorTemplate -suppress "featureDisplacement";
+ editorTemplate -suppress "initialSampleRate";
+ editorTemplate -suppress "textureThreshold";
+ editorTemplate -suppress "normalThreshold";
+ editorTemplate -suppress "extraSampleRate";
+}
+ \ No newline at end of file