Jump to content
hopbin9

Digital Assets and the Tab menu

Recommended Posts

Hi,

Ok, I've done this before but now I can't remember how.

When I create a digital asset, and then use them again, they are appearing under the tab / Menu / Digital Asset.

How do you define your own menu section for your assets? I have something called xRing and I want to put it under xPrimitives?

Thanks :)

Share this post


Link to post
Share on other sites

In the type properties dialog there's a tab called Tools then a another tab called Context. There's a parameter there called TAB Submenu Path.

Share this post


Link to post
Share on other sites

In the type properties dialog there's a tab called Tools then a another tab called Context. There's a parameter there called TAB Submenu Path.

awesome, thank you. :)

Share this post


Link to post
Share on other sites

Any idea how to query that "Tab Submenu path" string on an HDA using python?  cant' seem to find that bit of data anywhere?

Share this post


Link to post
Share on other sites

It can be done but there's no direct way to access it AFAIK

hda_def = hda_node.type().definition()
tools_section = hda_def.sections()['Tools.shelf']
# tools_section.contents returns an XML string which you
# need to parse and get the value of the tab Submenu path
tools_contents = tools_section.contents()

Hope it helps :)

-J

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×