Notifications
Clear all

[Closed] Reloading a menubar in Rollout?

So I am trying to have a menu in a rollout which uses filters on the menuitems to help hide and unhide based on attributes in a modifier. I have no issues trying to add the menu and getting the filter to run.

My question is there a way for me to rerun the filter functions with out having to close and reopen the rollout?

1 Reply

If your menu items are firing macroscripts, you can handle the visibility or the enble state ofneach menu items in the macroscript directly.

macroscript 
(
  on onIsVisible do (the conditions so the item is visible.  If false,  it is hidden) 
  on onIsEnabled do (conditions so the item is enable.  If false,  item is visible but disabled) 
  on execute (code to be fired by the menu item) 
)