-
Notifications
You must be signed in to change notification settings - Fork 212
/
MainMenuCommon.xml
57 lines (40 loc) · 1.05 KB
/
MainMenuCommon.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
<?xml version="1.0" encoding="UTF-8"?>
<!--
-->
<mainMenu>
<!-- menuDocument can only contain 1 menu element, whose id is
implicitly "root_menu"
-->
<menu>
<!-- Set external editor -->
<addScriptItem id="set_external_editor">
<label>Set External Text Editor</label>
<parent>preferences_submenu</parent>
<insertAfter>h.prefs_scripting</insertAfter>
<scriptCode>
<![CDATA[
import houdini_external_editor
reload(houdini_external_editor)
houdini_external_editor.set_external_editor()]]>
</scriptCode>
</addScriptItem>
</menu>
<menuBar>
<!-- An example of how to add a new submenu at the beginning of the
window menu.
-->
<subMenu id="file_menu">
<scriptItem id="open_crashfile">
<label>Open Crashfile</label>
<insertAfter>recent_files</insertAfter>
<scriptCode>
<![CDATA[
import restore_backup
reload(restore_backup)
restore_backup.recoverFile()
]]>
</scriptCode>
</scriptItem>
</subMenu>
</menuBar>
</mainMenu>