Notifications
Clear all

[Closed] Rollout Categories Fail in Scripted Utilities?

Hey Guys,

 Do Categories work in scripted rollouts?  Take a look at this, and you'll notice that the ordering fails...

  plugin simpleMod Mod1
  name:"Mod1"
  ClassID:#(0x75e16d7e, 0x236a84d3)
  category:"Test Mod"
  (
     parameters P1 rollout:R1
     (
        _works type:#boolean ui:thisCheckBox
     )
     rollout R2 "Rollout 2" category:2
     (
        button thisButton "Clicky!"
        
        -- Display a message to show the button works.
        on thisButton pressed do messagebox "Works!"
     )
     rollout R1 "Rollout 1" category:1
     (
        checkbox thisCheckbox "Show Alt Rollout"
        
        -- On open remove the second rollout
        on R1 open do removeRollout R2
        
        -- When checked, make the second rollout available.
        on thisCheckbox changed val do
        if val then addRollout R2
             else removeRollout R2
        on R1 open do
           if R1.thisCheckbox.checked
              then addRollout R2
              else removeRollout R2
     )
  )
  
 Any thoughts on why that might be the case?
2 Replies

Try right clicking in the rollout area in the modifier panel, and select “Reset Rollout Order”

cheers,
o

Never Mind. I solved it; turns out I needed to restart max because the old def was taking precidence. The ordering works now.

Thanks for the reply! For those looking for the full description, this is the groundwork for having multiple rollouts, with multiple param blocks, in a scripted utility.