MAXScript Tools and Interaction with 3ds Max > Creating MAXScript Tools > Scripted Utilities and Rollouts >

# Rollout .Controls Property

| Creating User Interfaces - Quick Navigation

    <rollout>.controls

This property returns an array of all the controls in the rollout.

EXAMPLE
    rollout testRollout "Test"
    (
      group "Test"
      (
        button btn_button "Press Me If You Can"
        spinner spn_spinner "Spin Me If You Can"
        checkbox chk_checkbox "Check Me If You Can"
      )--end group
    )--end rollout
    createDialog testRollout width:200

    for c in testRollout.controls do print c

    --loop through all controls in the rollout and  --disable them all:

    for c in testRollout.controls do c.enabled = false

RESULT
    Rollout:testRollout
    true
    GroupStartControl:Test
    ButtonControl:btn_button
    SpinnerControl:spn_spinner
    CheckBoxControl:chk_checkbox
    GroupEndControl:Test
    OK
    OK

Note

Note that a group is implemented as a pair of controls - groupStartControl and groupEndControl which "bracket" the rest of the controls. In the above example, the group was also disabled.

#### See Also

- Rollout User-Interface Controls

- Rollout User-Interface Controls Types

- Rollout User-Interface Controls Common Properties

- Rollout User-Interface Controls Common Layout Parameters