nuke Run - .bat
Posted: Fri May 19, 2017 4:45 pm
Timur, good afternoon!
I set up Afanasy, everything works fine. If I run through Keeper (in Nuke) the farm is working faultlessly. But I want to integrate it into my pipeline and I'm not really able to write the correct .bat file.
How can this be done? That I could run a plug-in through my file. I tried to register the variables, but with the renderer an error pops up:
NukeX 10.5v1, 64 bit, built Dec 6 2016.
Copyright (c) 2016 The Foundry Visionmongers Ltd. All Rights Reserved.
File "C:\cgru\python\lib\site.py", line 176
file=sys.stderr)
^
SyntaxError: invalid syntax
Example my .bat file:
@echo off
set AF_PYTHON=C:\cgru\afanasy\python
set AF_ROOT=C:\cgru\afanasy
set CGRU_LOCATION=C:\cgru
set NUKE_CGRU_PATH=C:\cgru\plugins\nuke
set CGRU_PYTHON=C:\cgru\lib\python
set PYTHONPATH=C:\cgru\afanasy\python;C:\cgru\plugins\nuke\scripts;C:\cgru\afanasy\python;C:\cgru\lib\python
"C:\Program Files\Nuke10.5v1\Nuke10.5.exe" --nukex
I set up Afanasy, everything works fine. If I run through Keeper (in Nuke) the farm is working faultlessly. But I want to integrate it into my pipeline and I'm not really able to write the correct .bat file.
How can this be done? That I could run a plug-in through my file. I tried to register the variables, but with the renderer an error pops up:
NukeX 10.5v1, 64 bit, built Dec 6 2016.
Copyright (c) 2016 The Foundry Visionmongers Ltd. All Rights Reserved.
File "C:\cgru\python\lib\site.py", line 176
file=sys.stderr)
^
SyntaxError: invalid syntax
Example my .bat file:
@echo off
set AF_PYTHON=C:\cgru\afanasy\python
set AF_ROOT=C:\cgru\afanasy
set CGRU_LOCATION=C:\cgru
set NUKE_CGRU_PATH=C:\cgru\plugins\nuke
set CGRU_PYTHON=C:\cgru\lib\python
set PYTHONPATH=C:\cgru\afanasy\python;C:\cgru\plugins\nuke\scripts;C:\cgru\afanasy\python;C:\cgru\lib\python
"C:\Program Files\Nuke10.5v1\Nuke10.5.exe" --nukex