Difference between revisions of "Defining Item Categories"

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

Revision as of 18:08, 2 May 2012

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 with 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>

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>