when doing a V-Ray RT render, i know it uses the viewport resolution (you can scale it by percentage in RT options).
does anyone know how to display this resolution of the viewport (not the camera or render globals), in either the VFB or Maya UI?
when doing a V-Ray RT render, i know it uses the viewport resolution (you can scale it by percentage in RT options).
does anyone know how to display this resolution of the viewport (not the camera or render globals), in either the VFB or Maya UI?
You mean as text overlay or as part of the HUD?
Best regards,
Vlado
looks like it prints in the vfb after render… I feel like HUD isn’t possible.
maybe do a wireframe snapshot via Maya renderview then send that to VFB?
Basically id like to know viewport res and adjust it before beginning IPR.
Thanks!
I’ll make a note to add this in the future, we don’t have a way of displaying this at the moment.
I can suggest a script approach that can get you this information:
Start V-Ray IPR in the viewport and then run the following mel or python script in the script editor.
Python:
import maya.cmds as cmds
panels=cmds.getPanel(type='modelPanel')
vrayPanel=''
for p in panels:
if (cmds.modelEditor(p, q=True, rom=True))=='VRayRT':
vrayPanel = p
break
w=cmds.modelEditor(vrayPanel, q=True, w=True)
h=cmds.modelEditor(vrayPanel, q=True, h=True)
print w , 'x', h
MEL:
string $panels[] = `getPanel -type modelPanel`;
string $vrayPanel = "";
for ($p in $panels) {
if (`modelEditor -q -rom $p` == "VRayRT") {
$vrayPanel = $p;
break;
}
}
string $w = `modelEditor -q -w $vrayPanel`;
string $h = `modelEditor -q -h $vrayPanel`;
print ($w + " x " + $h);
awesome, thanks so much!
im actually using vray ipr in the VFB but i think this may work in the meantime.