Silly question here but I haven't figured this out yet nor come across the answer online.
What's the best way to determine the number of submenus a menuItem has after it's been created? I have a system that dynamically adds menu items based on certain criteria. After that work is done I'd like to disable the menu (or remove it) if the total number of children is zero. Assume that I cannot get the number of items explicitly before creating the menu and that I'm using PyMEL's "with" nested structure to create the menu hierarchy. Thx! Ken -- "God is a metaphor for a mystery that absolutely transcends all human categories of thought. It's as simple as that!" - Joseph Campbell -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAP_aC5aoO2VNOxJZDN8kpWi0Qgt0YGDyW4ESCnjmwXAFLgG0PA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
