Create a V-Ray IPR Keyboard Shortcut for Quicker Rendering

Saimah got in touch and asked if there was a quicker way to start the V-Ray Interactive Production Rendering (IPR). He said he found going through the Render Settings, and from the frame buffer time-consuming.

Is there a way to create a shortcut?

2020-07-14 10_18_41-Online Courses - Anytime, Anywhere _ Udemy.png

The answer is yes we can make a keyboard shortcut and this is probably the quickest way to run an interactive render.

2020-07-20 14_32_02-Window.png

Before I show you that, I just want to make you aware of the IPR button in the V-Ray toolbar. If you click and hold on render you will see a dropdown with V-Ray IPR on.


2020-07-20 14_35_36-Window.png

I looked in the Customise UI under the V-Ray Keyboard shortcuts and could not see a โ€˜Run Interactiveโ€™ shortcut in here. We do have the option for IPR in the viewport but I prefer rendering in the frame buffer.

2020-07-20 15_01_10-Window.png

So letโ€™s use a script. To start a V-Ray IPR render using scripts we can type vrayStartIPR() in the MaxScript Mini Listener (in the bottom left of the screen). So typing vrayStartIPR() and hitting enter will start the V-Ray Interactive render we want. But we donโ€™t want to type or copy and paste this every time. So letโ€™s create a keyboard shortcut for that.

Create a Script

Go to Scripting > New Script.

2020-07-20 14_42_46-Window.png
  1. We want this to be a macro script so type macroscript.

  2. Then type the name of your script, I called it VRayIPR.

  3. Next, write category: this is going to help us find our script from the Customise UI menu. I will call mine โ€œLuxury Visualsโ€

  4. And finally, add vrayStartIPR()

So all together it should look something like thisโ€ฆ

macroscript VrayIPR category: "Luxury Visuals" 
(vrayStartIPR())

Now save this. I just saved it to the desktop. Then I dragged and dropped it into the viewport.

Assign a Shortcut

Go to Customize > Customize UI and under keyboard find the Luxury Visuals category from the dropdown. Click on VrayIPR, in the hotkey assign your keyboard shortcut. I used Ctrl+\ and hit assign.

Now thatโ€™s assigned, when you hit Ctrl+\ you will start a V-Ray Interactive Production Render.

This is how I would tackle the problem, if you know an easier way I would love to hear it. There is a video of this process below. If you enjoyed using scripts to speed up your 3d work then check out how to make a copy and paste script video.


Get my BEST updates delivered to your inbox. Join my email list and get my favorite content regularly. Unsubscribe anytime.


Render On!

Render On Jake.jpg