Page 1210 - Kitab3DsMax
P. 1210

Part XII: MAXScript and Plug-Ins
                                                 2. Select the box object, open the Utilities panel in the Command Panel (the icon is a hammer), and
                                                    click the MAXScript button.

                                                     The MAXScript rollout appears.
                                                 3. Click the Run Script button in the MAXScript rollout to open the Choose Editor file dialog box,
                                                    locate the SphereArray.ms file from the Chap 49 directory on the DVD, and click Open.

                                                     The SphereArray utility installs and appears in the Utilities drop-down list. (Because SphereArray
                                                    is a scripted utility, running it only installs it.)
                                                 4. Choose SphereArray from the Utilities drop-down list. Make sure that the box object is selected.
                                                 5. In the Sphere Array rollout, enter 50 in the Object Count field and 2.0 for the Radius field. Now
                                                    click the Go! button to run the script.
                                                     The script adds 50 copies of your box to the scene and randomly positions them two units away
                                                    from the box’s position.
                                             Figure 49.3 shows the results of the SphereArray MAXScript utility. Notice that the SphereArray script
                                             looks much like any other functio∂n or tool in Max.
                                        FIGURE 49.3
                                      The results of the SphereArray MAXScript utility





























                                             The MAXScript Listener window
                                             Figure 49.4 shows the MAXScript Listener window (keyboard shortcut F11), which lets you work interac-
                                             tively with the part of Max that interprets MAXScript commands. The top pane of the Listener window (the
                                             pink area) lets you enter MAXScript commands; the results are reported in the bottom pane (the white area)

                                      1162
   1205   1206   1207   1208   1209   1210   1211   1212   1213   1214   1215