Announcement

Collapse
No announcement yet.

Distributed Render settings via maxscript?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Distributed Render settings via maxscript?

    I'd like to add DR hosts via maxscript, or by copying some shared file somewhere that may exist. What are my options?

  • #2
    To start a DR rendering from MaxScript through the render() command, you first need to set up V-Ray to do distributed rendering:
    renderers.current.system_distributedRender=true

    You also need to set up the list of machines that will take part in the rendering.
    This list is stored in a file called "vray_dr.cfg" which is located in the 3ds Max "plugcfg" folder.
    You can obtain the path to this folder with the command
    getDir #plugcfg

    The format of this file is ; on each line it contains the name or IP address of a machine, followed by 1 (to use that machine) or 0 (don't use the machine).
    Additionally you can specify whether to restart the 3ds Max copy on the render slaves after rendering is complete.
    Here is an example of such a file:

    10.0.0.11 0
    10.0.0.122 1
    10.0.0.24 1
    10.0.0.7 0
    restart_slaves 1

    With this file, machines 10.0.0.122 and 10.0.0.24 will be used for rendering, and the 3ds Max copy running on them will be restarted after the rendering.
    You can create this file using the MaxScript functions for working with
    files (createFile/format/close).
    Svetlozar Draganov | Senior Manager 3D Support | contact us
    Chaos & Enscape & Cylindo are now one!

    Comment


    • #3
      Brilliant, thank you!

      Comment

      Working...
      X