The default rollout of an MCG tool gets generated automatically only if the Custom UI property is empty. If you are using MAXScript in the Custom UI property to extend an MCG tool, and you do not want to define a custom rollout, then you must restore the default rollout.
To do this, use the following code:
rollout params "Parameters" ( -- Restore the rollout UI elements <<ParamUIDefs>> -- Restore any rollout events required by lists or other pecific parameters <<RolloutParamsHandlers>> ) -- Your custom MAXScript goes here
The <<ParamUIDefs>> and <<RolloutParamsHandlers>> tags get replaced with the code for the UI controls that would normally be generated automatically when the Custom UI property is empty. It is one of several tags that you can use in the Custom UI property.
For simulation graphs, you should also add the <<SimRollout>> tag to restore the Simulation rollout with the Reset Simulation button. For example:
rollout params "Parameters" ( -- Restore the rollout UI elements <<ParamUIDefs>> -- Restore any rollout events required by lists or other pecific parameters <<RolloutParamsHandlers>> ) -- Restore the Simulation rollout <<SimRollout>> -- Your custom MAXScript goes here