This repository has been archived by the owner on Nov 26, 2022. It is now read-only.
forked from sideeffects/SideFXLabs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NetworkViewMenu.xml
111 lines (88 loc) · 3.12 KB
/
NetworkViewMenu.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
<?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[
from labsopui import networkeditordrawing
try:
reload(networkeditordrawing)
except NameError:
from importlib import reload
reload(networkeditordrawing)
networkeditordrawing.paint_in_editor(kwargs['editor'])
]]>
</scriptCode>
</scriptItem>
<scriptItem id="labs_screenshot">
<label>Capture and Embed</label>
<scriptCode>
<![CDATA[
from labsopui import screensampling
try:
reload(screensampling)
except NameError:
from importlib import reload
reload(screensampling)
screensampling.capture_and_embed(kwargs['editor'])
]]>
</scriptCode>
</scriptItem>
<scriptItem id="labs_sticker">
<label>Sticker Placer</label>
<scriptCode>
<![CDATA[
from labsopui import stickerplacer
try:
reload(stickerplacer)
except NameError:
from importlib import reload
reload(stickerplacer)
dialog = stickerplacer.StickerPlacer(hou.qt.mainWindow())
dialog.show()
]]>
</scriptCode>
</scriptItem>
<scriptItem id="labs_node_to_network_origin">
<label>Node to Network Origin</label>
<scriptCode>
<![CDATA[
from labsopui import network_organize
try:
reload(network_organize)
except NameError:
from importlib import reload
reload(network_organize)
network_organize.node_to_network_origin()
]]>
</scriptCode>
</scriptItem>
</subMenu>
</menuBar>
</mainMenu>