Announcement

Collapse
No announcement yet.

create a toolbar button to turn DR on or off

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

  • create a toolbar button to turn DR on or off

    can someone show me how to do this ?
    I just want to be able to toggle distributed rendering on or off without having to open up the render dialog etc.
    A "dummy's guide" would be great !
    Win10.Ryzen1950X. 80GbRam. RTX3080.RTX2070.Sketchup 22.0.354.VRaySketchUp.6001. - NvidiaStudioDriver 527.37

  • #2
    start script listner and then click on off on the button it will give you a command. then just drag that on ur toolbar and that should do the trick...
    CGI - Freelancer - Available for work

    www.dariuszmakowski.com - come and look

    Comment


    • #3
      thats what ive been doing - but nothing appears in the maxscript listener window. what could i be doing wrong ?
      Win10.Ryzen1950X. 80GbRam. RTX3080.RTX2070.Sketchup 22.0.354.VRaySketchUp.6001. - NvidiaStudioDriver 527.37

      Comment


      • #4
        In listener settings make sure he is listening to everyhing. Just press random boxes one of them will do the trick :P I cant remember the name now.
        CGI - Freelancer - Available for work

        www.dariuszmakowski.com - come and look

        Comment


        • #5
          I have tried activating all the options - nothing works.
          It does record actions from the main 3dsmax menus - but it records nothing from the render dialog.
          what else could i be missing here ?
          Win10.Ryzen1950X. 80GbRam. RTX3080.RTX2070.Sketchup 22.0.354.VRaySketchUp.6001. - NvidiaStudioDriver 527.37

          Comment


          • #6
            Hello,

            Basically :

            vRayRender = renderers.current
            vRayRender.system_distributedRender = off --sets DR off

            or
            vRayRender.system_distributedRender = on --sets DR on

            I hope this will help you a bit

            Cheers.
            Nicolas Caplat
            www.intangibles.fr

            Comment


            • #7
              thankyou - that does help. it works to turn DR OFF, but for some reason it does not work to turn it ON. I get the error -- Unknown property: "system_distributedRender" in undefined
              Win10.Ryzen1950X. 80GbRam. RTX3080.RTX2070.Sketchup 22.0.354.VRaySketchUp.6001. - NvidiaStudioDriver 527.37

              Comment


              • #8
                vRayRender = renderers.current
                vRayRender.system_distributedRender = on
                CGI - Freelancer - Available for work

                www.dariuszmakowski.com - come and look

                Comment


                • #9
                  Originally posted by Dariusz Makowski (Dadal) View Post
                  vRayRender = renderers.current
                  vRayRender.system_distributedRender = on
                  Sorry, yes, it seemed evident I was only showing how the code to enable / disable DR ... obviously, the variable VRayRender must be defined first.
                  Last edited by NicoC; 11-08-2014, 10:59 AM.
                  Nicolas Caplat
                  www.intangibles.fr

                  Comment


                  • #10
                    OK - thanks. i had realised it need the first sentence adding, but when i did it, it did not work - that was the problem. When i did it again from scratch (& dragged / dropped from listener again) it worked.
                    So - thankyou both for your help
                    Win10.Ryzen1950X. 80GbRam. RTX3080.RTX2070.Sketchup 22.0.354.VRaySketchUp.6001. - NvidiaStudioDriver 527.37

                    Comment

                    Working...
                    X