1.3 KiB
1.3 KiB
User Guide: Usage - Command-Line Interface (CLI)
This document explains how to use the Asset Processor Tool's Command-Line Interface.
Running the CLI
From the project root directory, run the following command:
python main.py [OPTIONS] INPUT_PATH [INPUT_PATH ...]
Arguments
INPUT_PATH: One or more paths to input.zip,.rar,.7zfiles, or folders.
Options
-p PRESET,--preset PRESET: (Required) Name of the preset (e.g.,Poliigon).-o OUTPUT_DIR,--output-dir OUTPUT_DIR: OverrideOUTPUT_BASE_DIRfromconfig.py.-w WORKERS,--workers WORKERS: Number of parallel processes (default: auto).--overwrite: Force reprocessing and overwrite existing output.-v,--verbose: Enable detailed DEBUG level logging.--nodegroup-blend NODEGROUP_BLEND: Path to.blendfor node groups. Triggers script if provided. Overridesconfig.py.--materials-blend MATERIALS_BLEND: Path to.blendfor materials. Triggers script if provided. Overridesconfig.py.
Example
python main.py "C:/Downloads/WoodFine001.zip" -p Poliigon -o "G:/Assets/Processed" --workers 4 --overwrite --nodegroup-blend "G:/Blender/Libraries/NodeGroups.blend" --materials-blend "G:/Blender/Libraries/Materials.blend"