-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOPmenu.xml
30 lines (26 loc) · 935 Bytes
/
OPmenu.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
<?xml version="1.0" encoding="UTF-8"?>
<menuDocument>
<menu>
<separatorItem/>
<expression>
node = kwargs.get("node", None)
if node is None:
return False
return node.type().category().name() == "Sop"
</expression>
<subMenu id="Axe_menu">
<label>[ Axe Menu ]</label>
<scriptItem id="axe_tool_1">
<label>Axe Tool 1</label>
<scriptCode>
<![CDATA[
print(f'hello')]]>
</scriptCode>
</scriptItem>
<scriptItem id="axe_tool_2">
<label>Axe Tool 2</label>
<scriptPath>$NS_BLENDER_IMPORT_EXPORT_HOOK/scripts/python/ns_blender_import.py</scriptPath>
</scriptItem>
</subMenu>
</menu>
</menuDocument>