Convert Blender-Purge to a more generic Blender-Crawl Tool #42

Merged
Nick Alberelli merged 34 commits from feature/blender-crawl into main 2023-05-17 15:38:47 +02:00
Showing only changes of commit f361f2ffe1 - Show all commits

View File

@ -22,8 +22,8 @@ This script does the following (follow this if you want to do this manually or o
1. Clone this repository with `git clone https://projects.blender.org/studio/blender-studio-pipeline.git`
2. Run `cd blender-studio-pipeline/scripts/blender-crawl` to enter directory
3. Install with `python setup.py install`
4. Run with `sudo python -m blender_crawl /my-folder/`
5. Get help with `sudo python3 -m blender_crawl -h`
4. Run with `blender_crawl /my-folder/`
5. Get help with `blender_crawl -h`
## How to get started
@ -44,11 +44,11 @@ Run directly out of repo folder or follow above installation instructions. Give
| Action | Command |
| ----------- | ----------- |
|Prints the names of .blends in Current Directory | `python -m blender_crawl ./` |
|Print the names of .blends Recursively | `python -m blender_crawl /my-folder/ --recursive` |
|Print only the names of .blends matching a provided string |`python -m blender_crawl /my-folder/ --find string`|
|Run default 'Purge' script on .blends in Current Directory |`python -m blender_crawl /my-folder/ --purge`|
|Run custom script on all .blends in Current Directory |`python -m blender_crawl /my-folder/ --script /my-directory/my-script.py`|
|Ask/Prompt before script execution|`python -m blender_crawl /my-folder/ --script /my-directory/my-script.py --ask`|
|Run with a custom blender executable|`python -m blender_crawl /my-folder/ --exec /path-to-blender-executable/blender`|
|Prints the names of .blends in Current Directory | `blender_crawl ./` |
|Print the names of .blends Recursively | `blender_crawl /my-folder/ --recursive` |
|Print only the names of .blends matching a provided string |`blender_crawl /my-folder/ --find string`|
|Run default 'Purge' script on .blends in Current Directory |`blender_crawl /my-folder/ --purge`|
|Run custom script on all .blends in Current Directory |`blender_crawl /my-folder/ --script /my-directory/my-script.py`|
|Ask/Prompt before script execution|`blender_crawl /my-folder/ --script /my-directory/my-script.py --ask`|
|Run with a custom blender executable|`blender_crawl /my-folder/ --exec /path-to-blender-executable/blender`|