Issues with Pathmapping

We have a few site python scripts that is in all our nuke (.nk) files.
We have path mapping enabled but the pathmapping will ruin the python scripts by changing the “” symbols.

Here is some of the text from the error log (shows a part of our python script in the .nk file being pathmapped:
Original:
\n#//192.168.2.4/\n#/Volumes/"
replaced:
/n#//192.168.2.4//n#//192.168.2.4/"

The rules we have applied is
/Volumes/
Replace with:
//192.168.2.4/

But it takes the rest of the ""s and replace the with "/"s
How can we make the Pathmapping only apply to the text defined by the rule?

You’ll have to modify the Nuke plugin to prevent it from changing all the path separators. Go to \your\repository\plugins\Nuke and open Nuke.py in a text editor. Look for this line:

CheckPathMappingInFileAndReplaceSeparator( sceneFilename, self.TempSceneFilename, "\\", "/" )

Comment out the code by placing a ‘#’ in front of it and add a new line that will perform the path mapping without swapping the separators:

#CheckPathMappingInFileAndReplaceSeparator( sceneFilename, self.TempSceneFilename, "\\", "/" )
CheckPathMappingInFile( sceneFilename, self.TempSceneFilename )

Save the file, and submit a new job to see if that makes a difference. For more info on these functions, see this documentation:
thinkboxsoftware.com/deadlin … _Functions

Cheers,

  • Ryan

Thanks for the quick reply, that did the job.

Have noticed that trying to put ÆØÅÖÄÜ into file names, comments, etc will result in errors.
Is that a problem with the Nuke.py aswell?

Glad to hear that worked!

For those characters, it sounds like an encoding problem. Can you post an example error?

Cheers,

  • Ryan

Here is a file called “RenderThisTestÆØÅ.nk” added from within nuke. Its the same thing in Windows and OSX

[code]

Error Message

An error occurred while synchronizing the job’s auxiliary files: can not find sourceFile: \192.168.2.4\Repository\DeadlineRepository\jobs\999_050_999_399b3784\RenderThisTest???.nk (System.IO.FileNotFoundException)

=======================================================
Slave Log

Could not get log text because log file did not exist

=======================================================
Error Type

RenderPluginException

=======================================================
Error Stack Trace

ved Deadline.Slaves.SlaveRenderThread.ThreadMain()[/code]

Thanks for the log. I’ve currently logged this as a bug, and we’ll look into it.

Cheers,

  • Ryan