# Sample Folder Watcher

> Expands the previous script and enables a "batch processing" of 3D assets into a folder watcher configuration. Any compatible 3D files copied into an "input" folder will automatically be transformed according to a specific optimization scenario.

## Sample #2 - Folder Watcher

[GitHub](https://github.com/Unity-Technologies/pixyz-sdk-samples)

That second sample expands the previous script and enables a "batch processing" of 3D assets into a folder watcher configuration. Any compatible 3D files copied into an "input" folder will automatically be transformed according to a specific optimization scenario.

![Folder watcher demo with Pixyz and Asset Manager](/api/media?file=/asset-transformer-sdk/media/images/sample/pixyz-sdk-asset-manager.gif)

### What to do?

Simply configure your [Pixyz Python environment](./../installation/python) and download the GitHub sample folder on your machine.

Then execute the `python/Windows/FolderWatcher/watcher.py` script:

![](/api/media?file=/asset-transformer-sdk/media/images/sample/watchersample.png)

> **Tip:**
>
> Don't forget to check and update the \`\`\`config.json\`\` file according to your own setup for Pixyz SDK, folder configuration and Asset Manager credentials.

### What it does?

That sample script will:

* configure and initialize your Pixyz SDK python instance
* connect to an existing Pixyz Flexlm license server (IP adress/hostname and port must be set as per your existing licensing setup)
* monitor an `inputFolder` as per the config.json configuration.
* load and process any native CAD or un-processed 3D model available in the folder and supported by Pixyz
* export locally in the `outputFolder`  all processed models
* **UNITY CLOUD ONLY** Assuming proper configuration of your Unity Cloud and Asset Manager information: upload all transformed assets onto the Asset Manager.
