Announcement

Collapse
No announcement yet.

Update server list for Distributed Renderview without using Maya's UI

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

  • Update server list for Distributed Renderview without using Maya's UI

    In the Distributed Render Setup reads the following:

    2. Set-up the Render Client. In the Maya interface, bring forth the Render Settings dialogue and in the Settings tab under the System roll out click on the Settings button in the Distributed Rendering group. Add all the Render Servers by inputing their IP's in the Add Server name or IP field and click on the Add Server button. You can include or exclude the servers in the list in the current rendering by selecting them from the list and toggling the Change button.


    Is it possible to add a Server without using the UI of Maya?
    Is there a mel/python command that allows vray to refresh the list of servers available for DR?

    I am curreblty developing a script that:
    - Request some number of machines for DR
    - Detects when a machine X is available
    - "Notifies" the client (that requested the machines) that machine X should be added to the DR server list

    I want to be able to remove a server from this list without using the UI as well.

  • #2
    We don't have MEL/Python script access to directly access the DR Settings. The DR settings actually read and write external files. Depending on your VRay version those might differ a bit. For example - in the 3.5.x versions we use a set of .tmp text files, but for 3.6 we're replacing them with one single .xml file for ease of management. There are 3.6 stable nightly builds that already use the xml.
    This means that the DR settings are not saved with the scene or the project, but instead are per-user on a machine (for example on windows those files are in %userprofile%\Documents\maya).
    But you can still edit the list on the external files (add/remove/change the entires).
    Again depending on your vray version, you can check what functions we call to read and write those files. Reading is called when we open the DR Settings window and writing is called when we close it.
    Then for detecting if machine X is available - you can use the DR Check tool that we ship with Maya.
    Alex Yolov
    Product Manager
    V-Ray for Maya, Chaos Player
    www.chaos.com

    Comment


    • #3
      Thank you! I had tried modifying the files you mentioned, but was missing something because the renderview that was in progress did not use the added server.
      I took a look to the mel script and found that it executed *vray updateDRHostList;* which was the last step needed.

      Comment

      Working...
      X