-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathAEboneDynamicsNodeTemplate.mel
83 lines (65 loc) · 3.59 KB
/
AEboneDynamicsNodeTemplate.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
global proc AEboneDynamicsNodeTemplate(string $nodeName)
{
editorTemplate -beginScrollLayout;
editorTemplate -beginLayout "Bone Dynamics Node Attributes" -collapse false;
editorTemplate -addControl "enable";
editorTemplate -addControl "time";
editorTemplate -addControl "resetTime";
editorTemplate -label "FPS" -addControl "fps";
editorTemplate -beginLayout "Input Attributes" -collapse false;
editorTemplate -addControl "boneTranslate";
editorTemplate -addControl "boneJointOrient";
editorTemplate -addControl "boneScale";
editorTemplate -addControl "boneInverseScale";
editorTemplate -addControl "boneParentMatrix";
editorTemplate -addControl "boneParentInverseMatrix";
editorTemplate -addSeparator;
editorTemplate -addControl "endTranslate";
editorTemplate -addControl "endScale";
editorTemplate -endLayout;
editorTemplate -beginLayout "Control Attributes" -collapse true;
editorTemplate -addControl "rotationOffset";
editorTemplate -addControl "offsetMatrix";
editorTemplate -addControl "offsetMatrixWeight";
editorTemplate -endLayout;
editorTemplate -beginLayout "Dynamics Attributes" -collapse false;
editorTemplate -addControl "damping";
editorTemplate -addControl "elasticity";
editorTemplate -addControl "elasticForceFunction";
editorTemplate -addControl "stiffness";
editorTemplate -addControl "mass";
editorTemplate -addControl "gravity";
editorTemplate -addControl "gravityMultiply";
editorTemplate -addSeparator;
editorTemplate -addControl "additionalForce";
editorTemplate -addControl "additionalForceScale";
editorTemplate -addSeparator;
editorTemplate -addControl "enableTurbulence";
editorTemplate -addControl "turbulenceSeed";
editorTemplate -addControl "turbulenceStrength";
editorTemplate -addControl "turbulenceVectorChangeScale";
editorTemplate -addControl "turbulenceVectorChangeMax";
editorTemplate -endLayout;
editorTemplate -beginLayout "Limits" -collapse true;
editorTemplate -addControl "enableAngleLimit";
editorTemplate -addControl "angleLimit";
editorTemplate -endLayout;
editorTemplate -beginLayout "Collisions" -collapse true;
editorTemplate -addControl "radius";
editorTemplate -addControl "iterations";
editorTemplate -addControl "enableGroundCol";
editorTemplate -addControl "groundHeight";
editorTemplate -addControl "sphereCollider";
editorTemplate -addControl "capsuleCollider";
editorTemplate -addControl "infinitePlaneCollider";
editorTemplate -label "Mesh Collider (*Experimental)" -addControl "meshCollider";
editorTemplate -addControl "meshColCutoff";
editorTemplate -endLayout;
//suppressed attributes
editorTemplate -suppress "outputRotate";
// include/call base class/node attributes
AEdependNodeTemplate $nodeName;
editorTemplate -addExtraControls;
editorTemplate -endLayout;
editorTemplate -endScrollLayout;
}