Announcement

Collapse
No announcement yet.

V-Ray framebuffer not a Maya window?

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

  • V-Ray framebuffer not a Maya window?

    From time to time we end up with Maya windows off-screen due to monitor order/orientation change. This is a 100 year old problem here, without a solid solution... until, maybe now

    This piece of MEL code successfully finds all Maya windows and moves them to coordinates 0,0 even in a multi-monitor setup:
    Code:
    for ($window in `lsUI -windows`) { window -e -tlc 0 0 $window ; }
    However, it doesn't manage to find the V-Ray framebuffer. Can the framebuffer be moved too somehow?

    Credit for that piece of MEL goes to Keith Rogers.
    Last edited by Fredrik Averpil; 25-09-2014, 02:31 AM. Reason: Added credit to Keith Rogers
    Best Regards,
    Fredrik

  • #2
    The VFB is a Qt window; it is also registered as a dockable window in Maya. I don't know how the lsUI command works; it is possible that it only handles windows created by Maya itself. You might have to use Qt-specific code to find the VFB.

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

    Comment


    • #3
      This code is not safe if some of the windows doesn't exist for some reason.

      Try this one, it has worked for me:
      Code:
      for ($window in `lsUI -windows`) {
          if (`window -q -exists $window`==0)
              continue;
          if (`window -q -mainWindow $window`!=0)
              continue;
          window -e -tlc 0 0 $window;
      }
      V-Ray developer

      Comment


      • #4
        Originally posted by vlado View Post
        The VFB is a Qt window; it is also registered as a dockable window in Maya. I don't know how the lsUI command works; it is possible that it only handles windows created by Maya itself. You might have to use Qt-specific code to find the VFB.

        Best regards,
        Vlado
        I thought this seemed odd ...because my Qt windows move with that code but not the V-Ray 2.x frame buffer. Turns out that the V-Ray 3 frame buffer does indeed move with that code. But the V-Ray 2.x frame buffer does not.
        Best Regards,
        Fredrik

        Comment


        • #5
          VFB in 3.0 is now a Maya panel, so it can be docked.
          In 2.0 it is just a QT window created manually (as Vlado mentioned), so the Maya APIs don't know much about it.
          V-Ray developer

          Comment


          • #6
            Alright, well. We plan on moving onto V-Ray 3 soon anyways
            Best Regards,
            Fredrik

            Comment

            Working...
            X