Announcement

Collapse
No announcement yet.

Switch Region with Hotkey

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

  • Switch Region with Hotkey

    I want to make a hotkey for switching Region Render. I made the same for Distributed Rendering with MEL but it looks like it doesn't work with the Region Render settings.
    I Activated Echo all commands in the Script editor but nothing happens. Is there an Attribute for that?

  • #2
    What about this call:
    Code:
    renderWindowCheckAndRenderRegion 0.745 0.092 0.509 0.288;
    V-Ray developer

    Comment


    • #3
      Thanks but that works only for the Maya Framebuffer.
      It doesn't work for the VFB. I also don't want to set a specific Region all I want is an on-/off switch as Hotkey.

      Comment


      • #4
        Then you can check the "vray vfbControl" command.
        But, I don't think there is an on-off switch for the region, unfortunately.
        There is a command to disable the region, but there is no command to just enable it - you have to always specify the coordinates for the region.
        V-Ray developer

        Comment


        • #5
          With "vfbControl" I can only reset the region with "-setregion", "reset". But thats something different. I just want to know that command is called if I press the Region Render Button in the VFB.

          Is there anyway to get the vauels of the last used region? If that is possible I could just reset the region and to enable it set a new region with the last values.

          Comment


          • #6
            Unfortunately you cannot do it at the moment.
            The VFB is not using the maya controls, but it is coded in Qt or wxWidgets, so there are no MEL commands involved in its operation.
            I've added it to our ToDo, so this feature will be added some time in the future.

            Sorry for the inconvenience.
            V-Ray developer

            Comment

            Working...
            X