- This topic has 1 reply, 1 voice, and was last updated 13 years, 3 months ago by
Andrew Alzner.
-
Posted in: Templates
-
22nd June 2012 at 2:04 pm #14489
Hello,
I’m having problems creating a new template. My problem seems to be in how I am mapping the executable.
I’m working in a Linux environment and trying to create a Vray standalone template. I used the Mental Ray template to copy from, and edited the code bits to match my pointers to vray. When I test it out I get what seems to be the proper command line output, but when I try to run this from within Muster on one of my machines I get an error stating I have an Invalid executable.
Here is the output from the test:
Platform: Linux Arguments: -sceneFile= “blah/blah/render_0001.vrscene” -imgFile=”outputImage.exr” -display=0 -noFrameNumbers=1
Here is the code I’m using in the template:
DECLARE ENGINE_LINUX
{SET PLATFORM_ENABLED 1
SET ENABLE_ERROR_CHECK 1
SET ENABLED_BY_DEFAULT 1
SET FRAMESFLOATS 0
SET COMMAND_LINE “-sceneFile= “%ATTR(job_file)” -imgFile=”%ATTR(output_folder)” -display=0 -noFrameNumbers=1″
SET EXECUTABLE “%ATTR(VRAYEXECUTABLE)”
SET STARTING_FOLDER “%ATTR(VRAYHOME)”
SET ENVIRONMENT_BLOCK CUSTOM
SET ENVIRONMENT_BLOCK DERIVED
SET DETECTION_LOGIC PROCDECLARE CONFIGURABLE_TAGS
{
ADD VRAYEXECUTABLE FILE_SELECTOR “/apps/maya2012-x64/vray/bin/vray” “Vray executable” “Specify the Vray render executable” NOTACTIVABLE MANDATORY *.exe
ADD VRAYHOME FOLDER_SELECTOR “/apps/maya2012-x64/vray/bin” “Location of Vray installation” “Specify the starting folder for the render process” NOTACTIVABLE MANDATORY}
DECLARE CUSTOM_ENVIRONMENT
{
SET VRAY_FOR_MAYA2008_PLUGINS_x64=/apps/maya2008/vray/vrayplugins
SET VRAY_FOR_MAYA2012_PLUGINS_x64=/usr/autodesk/maya2012-x64/vray/vrayplugins
SET VRAY_FOR_MAYA2008_MAIN_x64=/apps/maya2008/vray
SET VRAY_TOOLS_MAYA2012_x64=/usr/autodesk/maya2012-x64/vray/bin
SET VRAY_AUTH_CLIENT_FILE_PATH=/apps/vray
SET VRAY_FOR_MAYA2012_MAIN_x64=/usr/autodesk/maya2012-x64/vray
SET VRAY_TOOLS_MAYA2008_x64=/apps/vray/bin
}SET APPFINDER “VRAY” EXECUTABLE vray
MAP VRAYHOME “%ATTR(APPPATH)”
MAP VRAYSTARTINGFOLDER “%ATTR(APPPATH)”}
My vray executable resides in “/apps/maya2012-x64/vray/bin”. I’ve tried all kinds of variations for mapping. I’ve tried:
MAP VRAYEXECUTABLE “%ATTR(APPPATH)/%ATTR(APPBIN)”
MAP VRAYHOME “%ATTR(APPPATH)”or
MAP VRAYEXECUTABLE “%ATTR(APPPATH)”
MAP VRAYHOME “%ATTR(APPPATH)”but nothing seems to work. I’m sure it’s something simple, but I would appreciate any help.
Andrew
25th June 2012 at 3:54 pm #15198I changed a few lines and it seems to be working:
DECLARE CONFIGURABLE_TAGS
{
ADD VRAYEXECUTABLE FILE_SELECTOR “/apps/maya2012-x64/vray/bin/vray” “Vray executable” “Specify the Vray render executable” NOTACTIVABLE MANDATORY *.exe
ADD VRAYHOME FOLDER_SELECTOR “/apps/maya2012-x64/vray” “Location of Vray home” “Specify the starting folder for the render process” NOTACTIVABLE MANDATORY
ADD VRAYSTARTINGFOLDER FOLDER_SELECTOR “/apps/maya2012-x64/vray/bin” “Location of Vray starting folder” “Specify the starting folder for the render process” NOTACTIVABLE MANDATORY
}SET APPFINDER “VRAY” EXECUTABLE vray
#MAP VRAYEXECUTABLE “%ATTR(APPPATH)/%ATTR(APPBIN)”
MAP VRAYEXECUTABLE “%ATTR(APPBIN)”
MAP VRAYHOME “%ATTR(APPPATH)”
MAP VRAYSTARTINGFOLDER “%ATTR(APPPATH)”I changed the VRAYHOME FOLDER_SELECTOR and changed the mapping of the executable. On some of my render machines I get a message like the following:
Invalid executable /apps/maya2012-x64/vray/bin/vray
but on one machine I get vray starting and opening the vrscene file. Then it stops because it can’t get a license. I think I can figure out why this is happening now that I have the proper feedback. I just wish there was better error management. For the longest time all I saw was:
Invalid executable
-
You must be logged in to reply to this topic.