-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPARMmenu.xml
64 lines (54 loc) · 2.32 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file defines the menu items when right-clicking over parameters in
Houdini.
Files named the same (ie. PARMmenu.xml) can exist in $HOME/houdiniX.Y/
directory and will supplement the original definitions found in
$HFS/houdini/ (aka $HH).
The format in this file is similar to the format in $HH/MainMenuMaster
except that it uses the <menuDocument> and <menu> tags instead of
<mainMenu> and <menuBar>. See the comments in that file for more advanced
customization abilities.
Another difference here is that most menu items in this file have no labels
because they are dynamically created by Houdini. If labels are supplied to
the items which currently have no labels in this file, they will be
ignored.
Note that the id's correspond to their hotkeys with the h.pane.parms.
prefix (where available). For example, the item with id,
"revert_to_prev_val", refers to the action in the hotkeys manager as
"h.pane.parms.revert_to_prev_val".
For scriptItem elements, a 'kwargs' python dictionary is provided with the
following values:
'parms' : A list of hou.Parm objects which the script was invoked
upon.
'toolname' : The menu item's hotkey id (ie. the element's id
prefixed with h.pane.parms.)
'altclick' : True if the Alt key was also pressed, False otherwise
'ctrlclick' : True if the Ctrl key was also pressed, False otherwise
'shiftclick' : True if the Shift key was also pressed, False otherwise
'cmdclick' : True if the Option key was also pressed, False
otherwise. Note that this can only be true on OSX.
-->
<menuDocument>
<!-- menuDocument can only contain 1 menu element, whose id is
implicitly "root_menu"
-->
<menu>
<scriptItem id="bee_rs_tex_convert">
<label>Redshift Texture Convert (Bee)</label>
<modifyItem><insertAfter>revert_to_prev_val</insertAfter></modifyItem>
<scriptCode><![CDATA[
import bee.rs_tex_convert
bee.rs_tex_convert.main(kwargs)
]]></scriptCode>
</scriptItem>
<scriptItem id="bee_use_env_var">
<label>Switch path to Environment variable (Bee)</label>
<modifyItem><insertAfter>revert_to_prev_val</insertAfter></modifyItem>
<scriptCode><![CDATA[
import bee.parm_use_envvar
bee.parm_use_envvar.main(kwargs)
]]></scriptCode>
</scriptItem>
</menu>
</menuDocument>