Standalone packages

Here is how to start Pixyz Scenario Processor with a command line, using a scenario either as a Python script or as a Plugin:


Package

Scenario packaging type

Command

Windows

Python script

"C:\Program Files\PiXYZScenarioProcessor\PiXYZScenarioProcessor.exe" myScenario.py arg1 arg2...

Plugin

"C:\Program Files\PiXYZScenarioProcessor\PiXYZScenarioProcessor.exe" myScenarioModuleName myScenarioFunction arg1 arg2...


An example with this sample scenario would be:


"C:\Program Files\PiXYZScenarioProcessor\PiXYZScenarioProcessor.exe" sample convertFile "\"C:\inputFile.CATPart\"" "\"C:\outputFolder\"" "[\".fbx\", \".glb\"]" "True”

Debian

Python script

./PiXYZScenarioProcessor myScenario.py arg1 arg2...

Plugin

./PiXYZScenarioProcessor myScenarioModuleName myScenarioFunction arg1 arg2...


An example with this sample scenario would be:


./PiXYZScenarioProcessor sample convertFile "\"~/home/inputFile.CATPart\"" "\"~/home/outputFolder\"" "[\".fbx\", \".glb\"]" "True”

Docker image

Python script

Command example without GPU activation (see here):


docker run --gpus all -v ~/licenseFile_localFolder:/usr/share/PiXYZScenarioProcessor/licenses/ -v ~/data_local_folder:/opt/data --rm pixyzinc/scenarioprocessor:2022.1.0.35 /opt/data/myScenario.py arg1 arg2...


Command example without GPU activation:


docker run -v ~/licenseFile_localFolder:/usr/share/PiXYZScenarioProcessor/licenses/ -v ~/data_local_folder:/opt/data --rm pixyzinc/scenarioprocessor:2022.1.0.35 /opt/data/myScenario.py arg1 arg2..

Plugin

Command example with this sample scenario and with GPU activation (see here):


docker run --gpus all -v ~/licenseFile_localFolder:/usr/share/PiXYZScenarioProcessor/licenses/ -v ~/data_local_folder:/opt/data --rm pixyzinc/scenarioprocessor:2022.1.0.35 sample convertFile "\"~/home/inputFile.CATPart\"" "\"~/home/outputFolder\"" "[\".fbx\", \".glb\"]" "True”


Command example with this sample scenario and without GPU activation:


docker run -v ~/licenseFile_localFolder:/usr/share/PiXYZScenarioProcessor/licenses/ -v ~/data_local_folder:/opt/data --rm pixyzinc/scenarioprocessor:2022.1.0.35 sample convertFile "\"~/home/inputFile.CATPart\"" "\"~/home/outputFolder\"" "[\".fbx\", \".glb\"]" "True”