Page 1 of 2

Pathsmap

Posted: Fri Jan 27, 2017 4:55 pm
by VisorBNV
Hi!

How to proper set pathmaps? I have some questions:
1. What side (server/client/node)?
2. What directions(first from or first to)?
3. OS-style is *nix for windows network paths or native with "\\"?

Please help me to set up this very useful option for mixed environment.

Re: Pathsmap

Posted: Fri Jan 27, 2017 5:06 pm
by timurhai
There is a good example in docs:
http://cgru.info/afanasy/render#paths_map
and an explanation.
Have you read it?

Re: Pathsmap

Posted: Fri Jan 27, 2017 5:15 pm
by timurhai
O, i forgot to mention that it is a CLIENT <-> SERVER pairs.
Just added it do docs.

Re: Pathsmap

Posted: Fri Jan 27, 2017 6:46 pm
by VisorBNV
Missed this part of the doc, sorry.
Many thanks!

Re: Pathsmap

Posted: Sun Feb 19, 2017 9:25 pm
by brother john
OOI, for anyone else interested, here is my working config.json. We work on Windows machines, the CGRU Server is Linux and the blades are Linux:

{"cgru_config":{
"":"copied here by me",
"af_servername":"xxx.xxx.xxx.xxx",

"OS_windows":{
"pathsmap":[
["L:/", "//mnt/l/"],
["M:/", "//mnt/m/"],
["O:/", "//mnt/o/"],
["P:/", "//mnt/p/"],
["U:/", "//mnt/u/"]
]},

"previewcmds":["P:/z_render/cgru-windows/utilities/djv/bin/djv_view.exe \"@ARG@\"","P:/z_render/cgru-windows/start/AFANASY/vrimg2exrFrame.cmd \"@ARG@\"","P:/z_render/cgru-windows/start/AFANASY/vrimg2exrAll.cmd \"@ARG@\""]

}}

Re: Pathsmap

Posted: Thu Mar 02, 2017 7:47 pm
by VisorBNV
It works when win-workstation have this part of config and every render-blade are linux machine. Because paths translates on workstation side and comes to render translated. I have linux-renders and some free windows-workstations, that becomes renders for a time. Back translation on windows-render doesn't work...

Re: Pathsmap

Posted: Fri Mar 03, 2017 9:43 am
by timurhai
We have the same situation at work.
And paths map works fine in both directions.
You should dig this issue deeper.
See render logs for example.
Afrenders on windows has the same config as sibmission scripts?

Re: Pathsmap

Posted: Fri Mar 03, 2017 10:05 am
by VisorBNV
One config for keeper and render on windows. CGRU installed on every workstation and blade locally.
Timur, can you show example of proper pathmaps configuration for ours situation?

Re: Pathsmap

Posted: Fri Mar 03, 2017 10:18 am
by timurhai
On any Windows (render,workstation) config.json in CGRU root folder:

Code: Select all

{"cgru_config":{

	"include":["/cg/share/config.json"],

	"":""
}}
On any Linux (render,workstation) config.json in CGRU root folder:

Code: Select all

{"cgru_config":{

	"include":["T:/config.json"]

}}
A part of config.json in that shared location:

Code: Select all

...
"OS_windows":{
...
		"pathsmap":[
			["P:/",             "/cg/prj1/"],
			["T:/",             "/cg/share/"],
			["c:/cg/",          "/cg/"],
			["c:/temp/",        "/tmp/"]
		],
...

Re: Pathsmap

Posted: Fri Mar 03, 2017 10:21 am
by timurhai
Also on in the docs there is a real paths map config too:
http://cgru.info/afanasy/render#paths_map
( from another studio )