I have script in bash called "Nautilus Script". It can be executed from system folders, for making custom operations with selected files:
#!/bin/bash
while [ $# -gt 0 ]; do
file=$1
#doing smf with selected file
shift
done
Аlso, I know about ability launch Blender in cmd, with custom python scripts:
blender -b blendfile.blend -P script.py -x 1 -F PNG -f 1
And I whant to take a value file
and transfer it into python script to use it in script.py
:
#!/bin/bash
while [ $# -gt 0 ]; do
file=$1
blender -b blendfile.blend -P script.py//+put here $file// -x 1 -F PNG -f 1
shift
done
how can I do this?
About this answer: Note, python script launches in blender, not in bash shell