Announcement

Collapse
No announcement yet.

display IPR viewport resolution // V-Ray 3.6 // Maya 2018

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

  • display IPR viewport resolution // V-Ray 3.6 // Maya 2018

    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?

  • #2
    You mean as text overlay or as part of the HUD?

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Originally posted by vlado View Post
      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!

      Comment


      • #4
        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:

        Code:
        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:

        Code:
        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);
        Alex Yolov
        Product Manager
        V-Ray for Maya, Chaos Player
        www.chaos.com

        Comment


        • #5
          awesome, thanks so much!

          im actually using vray ipr in the VFB but i think this may work in the meantime.

          Comment

          Working...
          X