forked from sideeffects/SideFXLabs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetworkViewMenu.xml
More file actions
69 lines (54 loc) · 2.07 KB
/
NetworkViewMenu.xml
File metadata and controls
69 lines (54 loc) · 2.07 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file defines the menu items in the Houdini Network View pane.
Files named the same (ie. NetworkViewMenu.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.
See the comments in that file for more advanced customization abilities.
Note that the id's correspond to their hotkeys with the h. prefix. Please
use ids that begin with playbar. when adding new items.
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
'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.
-->
<mainMenu>
<menuBar>
<subMenu id = "labs_network_view_menu">
<modifyItem><insertBefore>help_menu</insertBefore></modifyItem>
<label>Labs</label>
<scriptItem id="labs_paint">
<label>Paint</label>
<scriptCode><![CDATA[
import networkeditordrawing
try:
reload(networkeditordrawing)
except NameError:
from importlib import reload
reload(networkeditordrawing)
networkeditordrawing.paint(kwargs['editor'])
]]></scriptCode>
</scriptItem>
<scriptItem id="labs_sticker">
<label>Sticker Placer</label>
<scriptCode><![CDATA[
import stickerplacer
try:
reload(stickerplacer)
except NameError:
from importlib import reload
reload(stickerplacer)
dialog = stickerplacer.StickerPlacer(hou.ui.mainQtWindow())
dialog.show()
]]></scriptCode>
</scriptItem>
</subMenu>
</menuBar>
</mainMenu>