Share

Play a script in Dynamo Player

Watch the video or follow the steps below for information about playing a Dynamo script in Dynamo Player.

Note: Before playing a script, the script writer needs to prepare it so it can be read by Dynamo Player. See Set up a Dynamo script for Dynamo Player.

Video Player is loading.
Current Time 0:00
/
Duration 0:00
Loaded: 0%
Progress: 0%
 
1x

  1. Load the script
  1. Launch Dynamo Player from the Transform tool palette by clicking the Dynamo Player icon or by right-clicking the Transform tab, and then selecting Dynamo > Dynamo Player.

  2. Load a script in Dynamo Player by doing one of the following:

    • Click , and then in the Dynamo Toolbox, click the icon of the script you want to load.

    • If the script you want to run is not available in the Dynamo Toolbox, click the browse icon , then navigate to the location of your Dynamo scripts.

  1. Select geometry for the script

After the script loads, note the following:

  • In the Selection Filter section, the selection filter is activated for the script's first input. If the geometry type of the input is Unspecified, you need to select the appropriate Selection Filter.

  • In the Script Input section, the names of each input and the input types defined by the script are displayed.

  • Names and controls for the script parameters are also displayed.

  1. For each input, select the geometry you want to use with the script by doing the following:

    • In the viewport, select the geometry for the first input.

      Note: Turn on Selection Sets if you want to use input geometry that is a member of a selection set, and then continue with the input selection.

      Select the appropriate geometry in the order the inputs appear in Dynamo Player. If you want deviate from the input order, click the Select button beside the input name before selecting the geometry.

      Tip: If you are selecting multiple CVs as an input, use Shift + MMB to chain-select a row of CVs.
    • Press the spacebar or click Accept.

      The name of the object now displays beside the input name indicating that the object was successfully selected.

    • Repeat these steps for each script input.

  2. After selecting geometry for all the inputs, press the spacebar or click Build to execute the script.

  1. Adjust the script parameters
  1. Use the available parameter controls to modify input values then click Update to rerun the script and see the results.

    Turn on Auto Update to have the output of the script update automatically when the parameter values are modified.

    When Auto Update is on, scripts will automatically execute when loaded if they require only a single input and you preselect the geometry.

    Note: The minimum and maximum value range can only be modified by editing the script in Dynamo. See Customize scripts for Dynamo Player.
  2. Click Undo All to revert the script execution and reset Dynamo Player to the pre-selection state.

Was this information helpful?