-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPARMmenu.xml
162 lines (139 loc) · 4.84 KB
/
PARMmenu.xml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?xml version="1.0" encoding="UTF-8"?>
<menuDocument>
<menu>
<addScriptItem id="ie_color_picker">
<parent>root_menu</parent>
<insertBefore>revert_to_prev_val</insertBefore>
<label>Color Eyedropper</label>
<context>
<expression><![CDATA[
import eyedropper
return eyedropper.is_color_parm(kwargs["parms"])
]]></expression>
</context>
<scriptCode><![CDATA[
import eyedropper
eyedropper.show_color_picker(kwargs["parms"][0])
]]></scriptCode>
</addScriptItem>
<addScriptItem id="ie_gradient_picker">
<parent>root_menu</parent>
<insertBefore>revert_to_prev_val</insertBefore>
<label>Gradient Eyedropper</label>
<context>
<expression><![CDATA[
import eyedropper
return eyedropper.is_color_ramp(kwargs["parms"])
]]></expression>
</context>
<scriptCode><![CDATA[
import eyedropper
eyedropper.show_gradient_picker(kwargs["parms"][0])
]]></scriptCode>
</addScriptItem>
<addScriptItem id="ie_ramp_sketch">
<parent>root_menu</parent>
<insertBefore>revert_to_prev_val</insertBefore>
<label>Ramp Sketch</label>
<context>
<expression><![CDATA[
import eyedropper
return eyedropper.is_float_ramp(kwargs["parms"])
]]></expression>
</context>
<scriptCode><![CDATA[
import eyedropper
eyedropper.show_ramp_sketch(kwargs["parms"][0])
]]></scriptCode>
</addScriptItem>
<!-- Parametric Ramps Menu -->
<subMenu id="ie_parametric_ramp_menu">
<label>Setup Parametric Ramp</label>
<context>
<expression><![CDATA[
import eyedropper
return eyedropper.is_float_ramp(kwargs["parms"])
]]></expression>
</context>
<scriptItem id="ie_parametric_ramp_reset">
<label>Remove Parameters</label>
<scriptCode><![CDATA[
import ramputils
ramputils.clean_parametric_spare_parms(kwargs["parms"][0].node(), kwargs["parms"][0])
]]></scriptCode>
</scriptItem>
<scriptItem id="ie_parametric_ramp_smoothstep">
<label>Smooth Step</label>
<context>
</context>
<scriptCode><![CDATA[
import ramputils
ramputils.setup_parametric_ramp(kwargs["parms"][0].node(), kwargs["parms"][0], "Smoothstep")
]]></scriptCode>
</scriptItem>
<scriptItem id="ie_parametric_ramp_easein">
<label>Ease In</label>
<context>
</context>
<scriptCode><![CDATA[
import ramputils
ramputils.setup_parametric_ramp(kwargs["parms"][0].node(), kwargs["parms"][0], "EaseIn")
]]></scriptCode>
</scriptItem>
<scriptItem id="ie_parametric_ramp_easeout">
<label>Ease Out</label>
<context>
</context>
<scriptCode><![CDATA[
import ramputils
ramputils.setup_parametric_ramp(kwargs["parms"][0].node(), kwargs["parms"][0], "EaseOut")
]]></scriptCode>
</scriptItem>
<scriptItem id="ie_parametric_ramp_bias">
<label>Bias</label>
<context>
</context>
<scriptCode><![CDATA[
import ramputils
ramputils.setup_parametric_ramp(kwargs["parms"][0].node(), kwargs["parms"][0], "Bias")
]]></scriptCode>
</scriptItem>
<scriptItem id="ie_parametric_ramp_gain">
<label>Gain</label>
<context>
</context>
<scriptCode><![CDATA[
import ramputils
ramputils.setup_parametric_ramp(kwargs["parms"][0].node(), kwargs["parms"][0], "Gain")
]]></scriptCode>
</scriptItem>
<scriptItem id="ie_parametric_ramp_bell">
<label>Bell</label>
<context>
</context>
<scriptCode><![CDATA[
import ramputils
ramputils.setup_parametric_ramp(kwargs["parms"][0].node(), kwargs["parms"][0], "Bell")
]]></scriptCode>
</scriptItem>
<scriptItem id="ie_parametric_ramp_bounce">
<label>Bounce</label>
<context>
</context>
<scriptCode><![CDATA[
import ramputils
ramputils.setup_parametric_ramp(kwargs["parms"][0].node(), kwargs["parms"][0], "Bounce")
]]></scriptCode>
</scriptItem>
<scriptItem id="ie_parametric_ramp_pulse">
<label>Pulse</label>
<context>
</context>
<scriptCode><![CDATA[
import ramputils
ramputils.setup_parametric_ramp(kwargs["parms"][0].node(), kwargs["parms"][0], "Pulse")
]]></scriptCode>
</scriptItem>
</subMenu>
</menu>
</menuDocument>