AWS Thinkbox Discussion Forums

MayaBatch global functions path issue

I think there is an issue with mayabatch.py.

lines 212,213

scriptBuilder.AppendLine(" case \"PluginDirectory\" : return \"" + self.GetPluginDirectory() + "\"; break;") scriptBuilder.AppendLine(" case \"JobsDataDirectory\" : return \"" + self.GetJobsDataDirectory() + "\"; break;")

result in the temporary mel script:

global proc string DeadlineValue (string $value){
  switch($value) {
      case "TestValue" : return "This is a test"; break;
      case "DataFileName" : return "test7.mb"; break;
      case "PluginDirectory" : return "C:\Users\ben\AppData\Local\Thinkbox\Deadline6\slave\BLIPLAND01\plugins"; break;
      case "JobsDataDirectory" : return "C:\Users\ben\AppData\Local\Thinkbox\Deadline6\slave\BLIPLAND01\jobsData"; break;
  }
  return "";
}

Notice the single slashes will format the strings incorrectly. So calling DeadlineValue() will yield incorrect paths.

Thanks,
Ben.

Thanks! Logged as a bug.

Cheers,

  • Ryan
Privacy | Site terms | Cookie preferences