Customize Menus
How to customize menus using .menu files in Asset Transformer Studio plugins
Read time 1 minuteLast updated 16 hours ago
Reorder menus using files.
.menuSet up
-
Create asubfolder at your plugin's root folder, next to
menus.plugin.xml -
Create a new file with the .menu extension.You can add as many .menu files as you like.Icons can be added by adding a .png file to thesubfolder, see the Toolbar section.
icons
Syntax
Menu creation and positioning
-
Create a new menu, position it before an existing one:<menu name="Sample" before="Scene"> … </menu>Or edit an existing menu:<menu name="Scene"> … </menu>
-
Create a submenu:<menu name="Sample" before="Scene"> <subMenu name="Pixyz"> … </subMenu> </menu>
-
Add separators:… <separator/> …
Function entries
-
Add the main plugin function and change its displayed name:<action function="SampleFunction" displayName="Sample Function"/>
-
Add existing functions from other modules:<action module="Algo" function="tessellate"/>
-
Hide existing functions:<action module="Algo" function="decimateTarget" hidden="true"/>