文档

Asset Transformer Studio


User Manual

Python API

Changelog

Asset Transformer Studio


Customize Menus

How to customize menus using .menu files in Asset Transformer Studio plugins
阅读时间1 分钟最后更新于 25 天前

Reorder menus using
.menu
files.

Set up

  1. Create a
    menus
    subfolder at your plugin's root folder, next to
    plugin.xml
    .
  2. 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 the
    icons
    subfolder, see the Toolbar section.

Syntax

  1. 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>
  2. Create a submenu:
    <menu name="Sample" before="Scene"> <subMenu name="Pixyz"> … </subMenu> </menu>
  3. 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"/>
注意
The function will be hidden in its original menu.