forked from Fe-Elf/FeELib-for-Houdini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PARMmenu.xml
40 lines (31 loc) · 832 Bytes
/
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
<?xml version="1.0" encoding="UTF-8"?>
<menuDocument>
<menu>
<subMenu id="FeE">
<label>FeE</label>
<insertBefore />
<scriptItem id="setOptypePython">
<label>set Optype Python</label>
<scriptCode><![CDATA[
import fee_Parm
# from importlib import reload
# reload(fee_Parm)
parms = kwargs["parms"]
if len(parms) == 0:
raise ValueError('invalid input', parms)
fee_Parm.setOptypePython(parms[0])
]]></scriptCode>
</scriptItem>
<scriptItem id="CopyParmName">
<label>Copy Parm Name</label>
<scriptCode><![CDATA[
import fee_Utils
parms = kwargs["parms"]
if len(parms) == 0:
raise ValueError('invalid input', parms)
fee_Utils.setClipboardText(parms[0].name())
]]></scriptCode>
</scriptItem>
</subMenu>
</menu>
</menuDocument>