Page 2 of 2

Re: Nuke error Unknown switch: -r

Posted: Wed Mar 27, 2019 4:19 pm
by timurhai
Do your afanasy gizmo has "Apply path map to scene" option turn on?
( it should be turned on by default )

Re: Nuke error Unknown switch: -r

Posted: Thu Mar 28, 2019 7:38 am
by mateusz@autonomy.pl
yes its on

Re: Nuke error Unknown switch: -r

Posted: Fri Mar 29, 2019 11:04 am
by timurhai
Hi.
So it seems that it is a paths map issue.
You should dig this.

Why paths map work on other task types?
What is the difference?
On what side is the problem submission->python->afserver or afserver->afrender->python?

Re: Nuke error Unknown switch: -r

Posted: Fri Mar 29, 2019 12:01 pm
by mateusz@autonomy.pl
i don;t know if i will be able to debug it..
submiting from afanasy starter gives a liitl better result, because file path is translated, still nuke plugin path is wrong...

"Command:
nuke -t C:\cgru-windows\plugins\nuke\render.py -F 1-1x1 -x "//mnt/STORAGE/P96_BNP-paribas-TOPVIEW/CG/COMP/NUKE/dzieciaki_po_trawie.nk"
Working Directory:
//mnt/STORAGE/P96_BNP-paribas-TOPVIEW/CG/COMP/NUKE
"

where to start looking for piece of code that translate nuke plugin path?

Re: Nuke error Unknown switch: -r

Posted: Fri Mar 29, 2019 12:57 pm
by timurhai
Try to execute in a Nude script editor:

Code: Select all

import cgrupathmap
pm = cgrupathmap.PathMap(UnixSeparators=True, Verbose=True)
This should initialize paths map and output info.

Re: Nuke error Unknown switch: -r

Posted: Fri Mar 29, 2019 12:58 pm
by timurhai
And where is "C:\cgru-windows" in your paths map?
Seems you should something like ["c:/cgru-windows", "/opt/cgru/"].

Re: Nuke error Unknown switch: -r

Posted: Mon Apr 01, 2019 12:12 pm
by mateusz@autonomy.pl
yes thats it... i did not thought that system paths need to be remaped either... Big thanks