Nuke error Unknown switch: -r

User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Nuke error Unknown switch: -r

Post by timurhai »

Do your afanasy gizmo has "Apply path map to scene" option turn on?
( it should be turned on by default )
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
mateusz@autonomy.pl
Posts: 16
Joined: Fri Jan 11, 2019 2:43 pm

Re: Nuke error Unknown switch: -r

Post by mateusz@autonomy.pl »

yes its on
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Nuke error Unknown switch: -r

Post 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?
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
mateusz@autonomy.pl
Posts: 16
Joined: Fri Jan 11, 2019 2:43 pm

Re: Nuke error Unknown switch: -r

Post 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?
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Nuke error Unknown switch: -r

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Nuke error Unknown switch: -r

Post by timurhai »

And where is "C:\cgru-windows" in your paths map?
Seems you should something like ["c:/cgru-windows", "/opt/cgru/"].
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
mateusz@autonomy.pl
Posts: 16
Joined: Fri Jan 11, 2019 2:43 pm

Re: Nuke error Unknown switch: -r

Post by mateusz@autonomy.pl »

yes thats it... i did not thought that system paths need to be remaped either... Big thanks
Post Reply