View Full Version : MEL - access the Factory Icon Browser in custom UI?

11 November 2012, 10:19 PM
I'm working on a meta-programming exercise, and I'm wanting to add a button that opens the Factory Icon Browser (available from a button in the shelfEditor)...

the shelfEditor itself is built through python, and the button in the shelfEditor won't return a command when queried. Any thoughts?

11 November 2012, 10:49 PM
It appears that what I'm looking for is the resourceBrowser -- which MEL does not have a simple equivalent to.

However, there is a MEL command called "resourceManager" which has all the major functionality built in - it returns a list of the internal icons.

I can build my own version of the Factory Icon Browser using it, but I'm hesitant. I don't like the idea that the resourceManager ONLY returns icon names -- I'm guessing that it is meant to do a lot more.

11 November 2012, 04:03 AM
resourceManager works fine, I just filter in the results with .xpm, .png, or .svg extensions. If anyone's interested, I'll post the code up here when I get a chance.

CGTalk Moderation
11 November 2012, 04:03 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.