> For the complete documentation index, see [llms.txt](https://docs.phoenixlidar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.phoenixlidar.com/spatialexplorer-8-and-9/user-interface/toolbars/data-visualization/cloud-script-tool.md).

# Cloud Script Tool

The Cloud Script Tool in the Edit Cloud Script window makes selections by querying point attributes.

<figure><img src="https://2222094320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdEevfLZRIk38LUPwDa4V%2Fuploads%2F3J3tYTw6oODFgH70C5vP%2Fedit-rename.svg?alt=media&amp;token=a77d955c-4d9a-49b5-a1e3-f2e5a1491d91" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2222094320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdEevfLZRIk38LUPwDa4V%2Fuploads%2FrX3d6odn5G1mjyXTz8i4%2Fimage.png?alt=media&amp;token=314bedfa-0e5a-4aa8-b38c-8e1d7b3b2e1b" alt=""><figcaption></figcaption></figure>

To clear a cloud script selection, clear the text in the script field then click the green check mark again:

<figure><img src="https://2222094320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdEevfLZRIk38LUPwDa4V%2Fuploads%2FfBLpmZ7S9HHvXjKqoAxS%2Fimage.png?alt=media&amp;token=6cacdfdd-4a3a-4591-bace-0cd46ac9f2c4" alt=""><figcaption></figcaption></figure>

### Example: Using Cloud Script to classify points based on height above ground.&#x20;

<figure><img src="https://2222094320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdEevfLZRIk38LUPwDa4V%2Fuploads%2FG8OlaDS6toSxnTXvXvMM%2Fimage.png?alt=media&amp;token=668eee28-f74d-41fb-bfe9-bb665b73e251" alt=""><figcaption><p>This script selects/queries all points of class 0 that are between 0 cm and 250 cm above the ground.</p></figcaption></figure>

The selected/queried points will be highlighted in the main view, as shown in the above example. You can then classify these selected points using the [Classify By Class ](/spatialexplorer-8-and-9/user-interface/toolbars/analytics/classify/classify-by-class.md)tool. A yellow message will be displayed, indicating that this classification is based on your cloud query from the cloud script tool.

<figure><img src="https://2222094320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdEevfLZRIk38LUPwDa4V%2Fuploads%2FTpri7U627FFYxFv8yaCS%2Fimage.png?alt=media&amp;token=a42acdc3-b23b-49d3-ac95-ef7b7230b7af" alt=""><figcaption><p>Yellow message indicating that only the highlighted query will be classified to the output.</p></figcaption></figure>
