Difference between revisions of "Defining Item Categories"

From The Foundry MODO SDK wiki
Jump to: navigation, search
Line 22: Line 22:
  
 
== See Also ==
 
== See Also ==
[[Message (lx-message.hpp)#Categories|Categories]]
+
* [[Message (lx-message.hpp)#Categories|Categories]]
  
 
[[Category:Configs]]
 
[[Category:Configs]]
 
[[Category:Usage]]
 
[[Category:Usage]]

Revision as of 15:57, 12 November 2013

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