Defining Item Categories

From The Foundry MODO SDK wiki
Jump to: navigation, search

When you create a new locator item type, you will want to categorize your item so it shows up in a useful place in the "Add Item" popup.

The item list uses the "itemtype:locator" category, so you can add your items with its own category in your resource file.

<atom type="Categories">
  <hash type="Category" key="itemtype:locator">
    <hash type="C" key="item.name.as.defined.in.plugin">short_name</hash>
  </hash>
</atom>

This internal name is given a real name through the "itemtype:locator:category" message table:

<atom type="Messages">
  <hash type="Table" key="itemtype:locator:category.en_US">
    <hash type="T" key="short_name">Long name of new category</hash>
  </hash>
</atom>

See Also