-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathAEOpenVDBFilterTemplate.mel
30 lines (28 loc) · 1.01 KB
/
AEOpenVDBFilterTemplate.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
global proc AEOpenVDBFilterTemplate( string $nodeAttr )
{
editorTemplate -beginScrollLayout;
{
editorTemplate -beginLayout "OpenVDB Filter" -collapse 0;
editorTemplate -addControl "Filter" "AEAT_OpenVDBFilterUpdateEnabled";
editorTemplate -addControl "FilterVoxelRadius";
editorTemplate -addControl "Iterations";
editorTemplate -addControl "Offset";
editorTemplate -endLayout;
editorTemplate -addExtraControls;
}
editorTemplate -endScrollLayout;
}
global proc
AEAT_OpenVDBFilterUpdateEnabled( string $node )
{
int $operation = `getAttr ($node+".Filter")`;
if ($operation < 3) {
editorTemplate -dimControl $node "FilterVoxelRadius" 0;
editorTemplate -dimControl $node "Iterations" 0;
editorTemplate -dimControl $node "Offset" 1;
} else {
editorTemplate -dimControl $node "FilterVoxelRadius" 1;
editorTemplate -dimControl $node "Iterations" 1;
editorTemplate -dimControl $node "Offset" 0;
}
}