I'm looking for a way to execute blender, in background mode (-b
) and giving a python script (--python <filename>
) which is available in the network. For example :
blender.exe -b --python \\Host\Dev\blender_setup.py
Currently Blender is looking for the script adding the current folder from which the .bat
was executed (or C:\Windows if the batch file was in a network path). I've tried many syntaxes (//, \, \\, "\...", etc) and apparently I can't without mapping a network drive. I always get something like :
OSError: Python file "C:\Users\flavio\Desktop\Host\Dev\blender_setup.py" could not be opened: No such file or directory
As you can see in bold, Blender is not looking in the right place
EDIT : Without mapping that network folder to a network drive and without simlinks. It would be too easy :)
Any clue ?
EDIT 2 : Waow, actually any network paths, even for .blend file, are not working. This is very tricky for a renderfarm. The following paths (no matter the /, //, \\, \\\\ etc) will give the same result :
blender.exe -b \\192.168.0.5\...\myFile.blend -a -x 1 -o
or
blender.exe -b \\HOST\...\myFile.blend -a -x 1 -o
Will give the following error message :
Warning: Unable to open 'C:\Users\flavio\Desktop\192.168.0.5...\myFile.blend': No such file or directory
(if the .bat file is on my Desktop)