How to replace path maps for some texture files in .ma?

Hi. We noticed that the path maps configured in Deadline Monitor do not replace some texture paths in the scene file. We are running a mixed farm and the linux slaves keeps looking for the windows drive for textures. Any working scripts to help us on this? Thanks

Hi @gigglers,

in the Configure repository options > Mapped paths.
This ui should allow you to setup that paths you want to substitute.

Let me us know if you have trouble figuring this out.

Hi, thanks for the reply. We actually did that, and all is well. Except the texture paths (which is within the mapped path set in ui) are still referring to window paths… i saw some forum post that there is a script to do swap of path in the .ma file itself but I dont know how to do this.

This is the setting in path mapping:

and .ma file path mapping enabled (Note: path mapping mode i.e. dirmap or text replacement is not seen here, how do I enable that ?)

So K:\ is mapped to /mnt/Assets/ however, some texture files are not mapped i.e. the slave log below loads some texture correctly from /mnt/Assets/TTL_Assets but some still trying to load from windows’ K:/TTL_Assets which will fail.

Blockquote
2019-08-23 22:56:44: 0: Got task!
2019-08-23 22:56:44: Constructor: MayaCmd
2019-08-23 22:56:44: 0: Loaded plugin MayaCmd (/mnt/DeadLineRepository7/plugins/MayaCmd)
2019-08-23 22:56:44: 0: Start Job timeout is disabled.
2019-08-23 22:56:44: 0: Task timeout is 7200 seconds (Regular Task Timeout)
2019-08-23 22:56:44: 0: Loaded job: TTL_112_01-2160_LGT - CH_color01 (5d522f2dbade1b282caac315)
2019-08-23 22:56:44: 0: INFO: Executing plugin script /tmp/Thinkbox/Deadline7/slave/ibm1-1a/plugins/5d522f2dbade1b282caac315/MayaCmd.py
2019-08-23 22:56:44: 0: INFO: About: Maya Cmd Plugin for Deadline (dlinit added by xgabing)
2019-08-23 22:56:44: 0: INFO: The job’s environment will be merged with the current environment before rendering
2019-08-23 22:56:44: 0: Plugin rendering frame(s): 301
2019-08-23 22:56:44: CheckPathMapping: Swapped “L:/5_Production/3D_Shots/112/Lighting/TTL_112_01-2160_LGT.ma” with “/mnt/TimeTravelerLuke/5_Production/3D_Shots/112/Lighting/TTL_112_01-2160_LGT.ma”
2019-08-23 22:56:44: CheckPathMapping: Swapped "file -rdi 1 -ns “RENDERcam” -rfn “RENDERcamRN” -op “v=0;” -typ “mayaAscii” “K:/TTL_Assets//CameraRigs/Camera2.ma”;
2019-08-23 22:56:44: " with "file -rdi 1 -ns “RENDERcam” -rfn “RENDERcamRN” -op “v=0;” -typ “mayaAscii” “/mnt/Assets/TTL_Assets//CameraRigs/Camera2.ma”;
2019-08-23 22:56:44: "
2019-08-23 22:56:44: CheckPathMapping: Swapped " -typ “mayaBinary” “K:/TTL_Assets/Characters/EP111/Laura/TTL_C_Laura_RDR.mb”;
2019-08-23 22:56:44: " with " -typ “mayaBinary” “/mnt/Assets/TTL_Assets/Characters/EP111/Laura/TTL_C_Laura_RDR.mb”;
2019-08-23 22:56:44: "
2019-08-23 22:56:44: CheckPathMapping: Swapped " -typ “mayaBinary” “K:/TTL_Assets/Characters/Global/JeanA/TTL_C_JeanA_RDR.mb”;
2019-08-23 22:56:44: " with " -typ “mayaBinary” “/mnt/Assets/TTL_Assets/Characters/Global/JeanA/TTL_C_JeanA_RDR.mb”;
2019-08-23 22:56:44: "
2019-08-23 22:56:44: CheckPathMapping: Swapped " -typ “mayaBinary” “K:/TTL_Assets/Characters/Global/LukeA/TTL_C_LukeA_RDR.mb”;
2019-08-23 22:56:44: " with " -typ “mayaBinary” “/mnt/Assets/TTL_Assets/Characters/Global/LukeA/TTL_C_LukeA_RDR.mb”;
2019-08-23 22:56:44: "
2019-08-23 22:56:44: CheckPathMapping: Swapped " -typ “mayaBinary” “K:/TTL_Assets//Props/EP112/HangGlider/TTL_P_HangGlider_PRD.mb”;
2019-08-23 22:56:44: " with " -typ “mayaBinary” “/mnt/Assets/TTL_Assets//Props/EP112/HangGlider/TTL_P_HangGlider_PRD.mb”;
2019-08-23 22:56:44: "
2019-08-23 22:56:44: CheckPathMapping: Swapped " -typ “mayaBinary” “K:/TTL_Assets//Sets/EP112/NazcaSkyB/TTL_S_NazcaSkyB_PRD.mb”;
2019-08-23 22:56:44: " with " -typ “mayaBinary” “/mnt/Assets/TTL_Assets//Sets/EP112/NazcaSkyB/TTL_S_NazcaSkyB_PRD.mb”;
2019-08-23 22:56:44: "
2019-08-23 22:56:44: CheckPathMapping: Swapped "file -r -ns “RENDERcam” -dr 1 -rfn “RENDERcamRN” -op “v=0;” -typ “mayaAscii” “K:/TTL_Assets//CameraRigs/Camera2.ma”;
2019-08-23 22:56:44: " with "file -r -ns “RENDERcam” -dr 1 -rfn “RENDERcamRN” -op “v=0;” -typ “mayaAscii” “/mnt/Assets/TTL_Assets//CameraRigs/Camera2.ma”;
2019-08-23 22:56:44: "
2019-08-23 22:56:44: CheckPathMapping: Swapped " -typ “mayaBinary” “K:/TTL_Assets/Characters/EP111/Laura/TTL_C_Laura_RDR.mb”;
2019-08-23 22:56:44: " with " -typ “mayaBinary” “/mnt/Assets/TTL_Assets/Characters/EP111/Laura/TTL_C_Laura_RDR.mb”;
2019-08-23 22:56:44: "
2019-08-23 22:56:44: CheckPathMapping: Swapped " -typ “mayaBinary” “K:/TTL_Assets/Characters/Global/JeanA/TTL_C_JeanA_RDR.mb”;
2019-08-23 22:56:44: " with " -typ “mayaBinary” “/mnt/Assets/TTL_Assets/Characters/Global/JeanA/TTL_C_JeanA_RDR.mb”;
2019-08-23 22:56:44: "
2019-08-23 22:56:44: CheckPathMapping: Swapped " -typ “mayaBinary” “K:/TTL_Assets/Characters/Global/LukeA/TTL_C_LukeA_RDR.mb”;
2019-08-23 22:56:44: " with " -typ “mayaBinary” “/mnt/Assets/TTL_Assets/Characters/Global/LukeA/TTL_C_LukeA_RDR.mb”;
2019-08-23 22:56:44: "
2019-08-23 22:56:44: CheckPathMapping: Swapped " -typ “mayaBinary” “K:/TTL_Assets//Props/EP112/HangGlider/TTL_P_HangGlider_PRD.mb”;
2019-08-23 22:56:44: " with " -typ “mayaBinary” “/mnt/Assets/TTL_Assets//Props/EP112/HangGlider/TTL_P_HangGlider_PRD.mb”;
[cut]
2019-08-23 22:58:38: 0: STDOUT: V-Ray: Starting render
2019-08-23 22:58:38: 0: STDOUT: [2019/Aug/23|22:58:38] V-Ray: Exporting scene to V-Ray.
2019-08-23 22:58:38: 0: STDOUT: [2019/Aug/23|22:58:38] V-Ray: Parsing light links time 0h 0m 0.2s (0.2 s)
2019-08-23 22:58:38: 0: STDOUT: [2019/Aug/23|22:58:38] V-Ray warning: Created the file path for /tmp/Thinkbox/Deadline7/slave/ibm1-1a/jobsData/5d522f2dbade1b282caac315/mayaOutput_tempeVnxy0/TTL_112_01-2160_LGT/CH_color01/CH_color01.
2019-08-23 22:58:39: 0: STDOUT: [2019/Aug/23|22:58:39] V-Ray: Translating scene geometry for V-Ray
2019-08-23 22:58:39: 0: STDOUT: [2019/Aug/23|22:58:39] V-Ray: (Estimated time remaining: 0h 0m 3.8s): 11 % completed
2019-08-23 22:58:40: 0: STDOUT: [2019/Aug/23|22:58:39] V-Ray: (Estimated time remaining: 0h 0m 2.7s): 20 % completed
2019-08-23 22:58:40: 0: STDOUT: [2019/Aug/23|22:58:39] V-Ray: (Estimated time remaining: 0h 0m 1.8s): 30 % completed
2019-08-23 22:58:40: 0: STDOUT: [2019/Aug/23|22:58:40] V-Ray: (Estimated time remaining: 0h 0m 1.9s): 40 % completed
2019-08-23 22:58:40: 0: STDOUT: [2019/Aug/23|22:58:40] V-Ray: (Estimated time remaining: 0h 0m 1.2s): 54 % completed
2019-08-23 22:58:41: 0: STDOUT: [2019/Aug/23|22:58:41] V-Ray: (Estimated time remaining: 0h 0m 1.6s): 60 % completed
2019-08-23 22:58:42: 0: STDOUT: [2019/Aug/23|22:58:41] V-Ray: (Estimated time remaining: 0h 0m 1.1s): 70 % completed
2019-08-23 22:58:42: 0: STDOUT: [2019/Aug/23|22:58:42] V-Ray: (Estimated time remaining: 0h 0m 0.1s): 96 % completed
2019-08-23 22:58:42: 0: STDOUT: [2019/Aug/23|22:58:42] V-Ray: Total time translating scene for V-Ray 0h 0m 4.6s (4.6 s)
2019-08-23 22:58:42: 0: STDOUT: [2019/Aug/23|22:58:42] V-Ray: Rendering.
2019-08-23 22:58:42: 0: STDOUT: [2019/Aug/23|22:58:42] V-Ray: Clearing bitmap cache memory…
2019-08-23 22:58:42: 0: STDOUT: [2019/Aug/23|22:58:42] V-Ray: Rendering frames.
2019-08-23 22:58:42: 0: STDOUT: [2019/Aug/23|22:58:42] V-Ray warning: VRayMesh “TTL_S_NazcaSkyB:Ground1vraymesh” animated status has unexpected value 2, treating as animated.
2019-08-23 22:58:45: 0: STDOUT: [2019/Aug/23|22:58:45] V-Ray: Updating frame at time 301.00
2019-08-23 22:58:46: 0: STDOUT: [2019/Aug/23|22:58:45] V-Ray: (Estimated time remaining: 0h 0m 3.5s): 10 % completed
2019-08-23 22:58:46: 0: STDOUT: [2019/Aug/23|22:58:46] V-Ray: (Estimated time remaining: 0h 0m 3.6s): 21 % completed
2019-08-23 22:58:47: 0: STDOUT: [2019/Aug/23|22:58:47] V-Ray: (Estimated time remaining: 0h 0m 4.6s): 32 % completed
2019-08-23 22:58:48: 0: STDOUT: [2019/Aug/23|22:58:47] V-Ray: (Estimated time remaining: 0h 0m 3.1s): 42 % completed
2019-08-23 22:58:48: 0: STDOUT: [2019/Aug/23|22:58:47] V-Ray: (Estimated time remaining: 0h 0m 2.3s): 51 % completed
2019-08-23 22:58:48: 0: STDOUT: [2019/Aug/23|22:58:48] V-Ray: (Estimated time remaining: 0h 0m 1.7s): 60 % completed
2019-08-23 22:58:48: 0: STDOUT: [2019/Aug/23|22:58:48] V-Ray: (Estimated time remaining: 0h 0m 0.9s): 74 % completed
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: (Estimated time remaining: 0h 0m 0.8s): 81 % completed
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: (Estimated time remaining: 0h 0m 0.4s): 90 % completed
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: Total time updating frame 0h 0m 3.8s (3.8 s)
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: Preparing renderer…
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: Using Intel Embree ray server
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: Preparing scene for rendering…
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: Creating texture cache with size 4000 MB
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: Creating bitmap manager
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: Bitmap manager created.
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: 5 lights found.
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: Using full light evaluation
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: Max ray intensity is enabled: rendered result may have incorrect brightness.
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: Preparing scene for frame…
2019-08-23 22:58:49: 0: STDOUT: [2019/Aug/23|22:58:49] V-Ray: Compiling geometry…
2019-08-23 22:58:52: 0: STDOUT: [2019/Aug/23|22:58:52] V-Ray: Using embree ray tracing.
2019-08-23 22:58:52: 0: STDOUT: [2019/Aug/23|22:58:52] V-Ray: Building embree static accelerator …
2019-08-23 22:58:53: 0: STDOUT: [2019/Aug/23|22:58:53] V-Ray: Building embree static trees took 872 milliseconds
2019-08-23 22:58:53: 0: STDOUT: [2019/Aug/23|22:58:53] V-Ray: Building embree dynamic geometry tree…
2019-08-23 22:58:53: 0: STDOUT: [2019/Aug/23|22:58:53] V-Ray: Embree dynamic geometry tree contains 140 primitives.
2019-08-23 22:58:53: 0: STDOUT: [2019/Aug/23|22:58:53] V-Ray: Embree dynamic geometry tree built in 5.57 ms.
2019-08-23 22:58:53: 0: STDOUT: [2019/Aug/23|22:58:53] V-Ray: Embree dynamic geometry tree takes 0.02 MB.
2019-08-23 22:58:53: 0: STDOUT: [2019/Aug/23|22:58:53] V-Ray: Building embree static hair …
2019-08-23 22:58:54: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray: Static hair tree statistics:
2019-08-23 22:58:54: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray: Memory usage: 186 MB
2019-08-23 22:58:54: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray: Number of hair systems : 8
2019-08-23 22:58:54: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray: Number of bezier curves: 1019896
2019-08-23 22:58:54: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray warning: Scene bounding box is too large, possible raycast errors.
2019-08-23 22:58:54: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray: Tracing 4194304 image samples for light cache in 64 passes.
2019-08-23 22:58:54: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray: Using 79.10 MB for light cache preview buffer
2019-08-23 22:58:54: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray: Building light cache…
2019-08-23 22:58:55: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray warning: Bitmap file “K:/TTL_Assets/Characters/Global/LukeA/Map/Hires/TTL_C_LukeA_SPC_Spaulder.jpg” failed to load: file does not exist
2019-08-23 22:58:55: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray warning: Bitmap file “K:/TTL_Assets/Characters/Global/LukeA/Map/Hires/TTL_C_LukeA_SPC_Jacket.jpg” failed to load: file does not exist
2019-08-23 22:58:55: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray warning: Bitmap file “K:/TTL_Assets/Characters/Global/LukeA/Map/Hires/TTL_C_LukeA_NOR_Spaulder.jpg” failed to load: file does not exist
2019-08-23 22:58:55: 0: STDOUT: [2019/Aug/23|22:58:54] V-Ray warning: Bitmap file “K:/TTL_Assets/Characters/Global/LukeA/Map/Hires/TTL_C_LukeA_DIF_Spaulder.jpg” failed to load: file does not exist
2019-08-23 22:58:55: 0: STDOUT: [2019/Aug/23|22:58:55] V-Ray: Bitmap file “/mnt/Assets/TTL_Assets/Characters/EP111/Laura/Map/Hires/TTL_C_Laura_SSS_MeaslesArm.jpg” loaded.
2019-08-23 22:58:55: 0: STDOUT: [2019/Aug/23|22:58:55] V-Ray: Bitmap file “/mnt/Assets/TTL_Assets/Props/EP112/HangGlider/Map/Hires/TTL_P_HangGlider_DIF_Bamboo.jpg” loaded.
2019-08-23 22:58:55: 0: STDOUT: [2019/Aug/23|22:58:55] V-Ray: Bitmap file “/mnt/Assets/TTL_Assets/Props/EP112/HangGlider/Map/Hires/TTL_P_HangGlider_DIF_BambooIn.jpg” loaded.
2019-08-23 22:58:55: 0: STDOUT: [2019/Aug/23|22:58:55] V-Ray: Bitmap file “/mnt/Assets/TTL_Assets/Characters/EP111/Laura/Map/Hires/TTL_C_Laura_SPC_Hair.jpg” loaded.
2019-08-23 22:58:55: 0: STDOUT: [2019/Aug/23|22:58:55] V-Ray: Bitmap file “/mnt/Assets/TTL_Assets/Props/EP112/HangGlider/Map/Hires/TTL_P_HangGlider_TPY_BambooIn.jpg” loaded.
2019-08-23 22:58:56: 0: STDOUT: [2019/Aug/23|22:58:55] V-Ray: Bitmap file “/mnt/Assets/TTL_Assets/Characters/EP111/Laura/Map/Hires/TTL_C_Laura_DIF_MeaslesArm.jpg” loaded.
[cut]

I think it might be an incorrect error, where it its looking up the updated path, but fails and print out the original path.

on your linix machine, can you check that this exists:
/mnt/Assets/TTL_Assets/Characters/Global/LukeA/TTL_C_LukeA_RDR.mb

remember linux is case sensitive.

The file /mnt/Assets/TTL_Assets/Characters/Global/LukeA/TTL_C_LukeA_RDR.mb exists.

The scene got rendered but with black due to the failed texture loads… the texture files are there but not sure why it was not mapped by deadline.

hmmm,

Do you by any chance have a linux machine with a front end , that way you can test to see what is occuring?
essentially, you would load the scene up, change the paths in the reference editor for the references, then check the paths to the textures, maybe maya cant see the location of the textures and is returning the original path and not the updated path.

Thats all i have , sorry.