-
Notifications
You must be signed in to change notification settings - Fork 0
/
AEdlSnapToMeshNodeTemplate.mel
31 lines (21 loc) · 1.09 KB
/
AEdlSnapToMeshNodeTemplate.mel
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
global proc AEdlSnapToMeshNodeTemplate( string $nodeName )
{
// the following controls will be in a scrollable layout
editorTemplate -beginScrollLayout;
// add a bunch of common properties
editorTemplate -beginLayout "Snap To Mesh Attributes" -collapse 0;
editorTemplate -callCustom "AEinputNew \"Ground Mesh\"" "AEinputReplace \"Ground Mesh\"" "inputMesh";
editorTemplate -addSeparator;
editorTemplate -addControl "inWorldPosition";
editorTemplate -addControl "inWorldTranslate";
editorTemplate -addControl "inLocalTranslate";
editorTemplate -addControl "outTranslate" ;
editorTemplate -addSeparator;
editorTemplate -addControl "weight";
editorTemplate -endLayout;
// include/call base class/node attributes
AEdependNodeTemplate $nodeName;
// add any extra attributes that have been added
editorTemplate -addExtraControls;
editorTemplate -endScrollLayout;
}