Azure Batch Render Xgen path error

Pasan Madusanka 21 Reputation points
2020-09-10T06:46:36.993+00:00

Hi,
When I do Azure batch render with Vray & Maya my Xgen search paths changes back to relative paths resulting in missing files. I always set the Xgen paths to use absolute paths using Xgen path editor but somehow when rendering in the cloud it get changed. Other paths such as source images, nCache works perfectly. Local renders work fine too.

Please help!

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
309 questions
{count} votes

Accepted answer
  1. prmanhas-MSFT 17,891 Reputation points Microsoft Employee
    2020-09-16T12:43:27.047+00:00

    @Pasan Madusanka The log file for that frame specifies the assets that were not found. It also looks like the redshift plugin is needed as well. If so this will be needed to be installed via an application package or start task on the pool.

    Have the missing assets below been uploaded into the file group?
    If they have, then I would check where these files are referenced from in the scene.

    Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "redshift4maya", was not found on MAYA_PLUG_IN_PATH.
    Error: XGen: Cannot copy file from: G:/Temp/New_Project//assets/RIG_Enemy1_V1__collection.xgen
    Error: XGen: Failed to find Hair/paintmaps/hair_mask/Vi_ch_02.ptx
    Error: XGen: Failed to find EyeBrows/paintmaps/Eyebrow_densty/Vi_ch_02.ptx
    Error: XGen: Failed to find Beard/paintmaps/Beard_Dens/Vi_ch_02.ptx
    Error: XGen: Failed to find Beard/paintmaps/lengthdesn/Vi_ch_02.ptx
    Error: XGen: Failed to find UpBeard/paintmaps/upbeard/Vi_ch_02.ptx
    Error: XGen: Failed to find downBeard/paintmaps/Downbeardmask/Vi_ch_02.ptx
    Error: XGen: Failed to find SmallHair/paintmaps/maskDD/Vi_ch_02.ptx

    These missing files will be why the render is not as you expect.

    Hope it helps!!!

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics


1 additional answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,891 Reputation points Microsoft Employee
    2020-09-16T07:38:04.767+00:00

    @Pasan Madusanka Firstly, apologies for the delay in responding on this and any inconvenience this issue may have caused

    After discussion with our team internally I got the below response:

    There's a lot of missing context here such as what are you using to submit to Batch, specifically Maya plugin or BatchExplorer - and if BE then what version of what BE template, if Maya plugin then what version of the plugin.

    As it is, absolute paths are generally a bad idea.You should look to structure your scene and Maya project (if submitting from Maya plugin) to use relative paths first before trying ANY distributed render, and particularly before rendering in the cloud.

    Each Batch Task has a specific working directory into which the rendering assets are deployed.

    I believe an attempt is made to rewrite the paths to relative in order to make things work, but this won’t be 100%.

    Hope it helps!!!

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics