Other render views, editors, and others were all docked to the panel, but only Vray VFB was not docked.
I want to see ViewPort and VFB windows together, but I can't. Does anyone know how to do T.T? Or you can minimize the window with a script command and let me know the toggle command like loading the window again! (If you tell me both ways, you're an angel)
I know the IPR features in Viewport.
But I want to know the command to dock or switch the VFB window.
Ask in the official Vray forum.
Execute this MEL code after opening Render View Window and V-Ray Frame Buffer Window:
proc vfbwc () {
global string $gVfbCustomForm;
$gVfbCustomForm = "vfbCustomForm";
if (!`workspaceControl -ex vfbWorkspaceControl`) {
workspaceControl -l "V-Ray Frame Buffer"
-retain false
-floating true
-uiScript "global string $gVfbCustomForm; formLayout $gVfbCustomForm;"
vfbWorkspaceControl;
}
}
if (`workspaceControl -ex renderViewWindow` &&
`scriptedPanel -ex vfbPanel`) {
vfbwc;
global string $gVfbCustomForm;
scriptedPanel -e -up vfbPanel;
scriptedPanel -e -p $gVfbCustomForm vfbPanel;
formLayout -e
-af vfbPanel "top" 0
-af vfbPanel "left" 0
-af vfbPanel "right" 0
-af vfbPanel "bottom" 0
$gVfbCustomForm;
workspaceControl -e -rs -ttc renderViewWindow 2 vfbWorkspaceControl;
}
I hope that helps.
Run this code after opening VFB. If the return value is 0, vfbPanel does not exist.
scriptedPanel -ex vfbPanel;
If so, you need to run this code to find the VFB panel name, which is a must.
lsUI -p;
If the panel name is found, replace it with the name in this code.↓(Capital letters)
proc vfbwc () {
global string $gVfbCustomForm;
$gVfbCustomForm = "vfbCustomForm";
if (!`workspaceControl -ex vfbWorkspaceControl`) {
workspaceControl -l "V-Ray Frame Buffer"
-retain false
-floating true
-uiScript "global string $gVfbCustomForm; formLayout $gVfbCustomForm;"
vfbWorkspaceControl;
}
}
if (`workspaceControl -ex renderViewWindow` &&
`scriptedPanel -ex VFBPANEL`) {
vfbwc;
global string $gVfbCustomForm;
scriptedPanel -e -up VFBPANEL;
scriptedPanel -e -p $gVfbCustomForm VFBPANEL;
formLayout -e
-af VFBPANEL "top" 0
-af VFBPANEL "left" 0
-af VFBPANEL "right" 0
-af VFBPANEL "bottom" 0
$gVfbCustomForm;
workspaceControl -e -rs -ttc renderViewWindow 2 vfbWorkspaceControl;
}
Yes, you need to execute these commands in the script editor. After lsUI executes, there are many panel names in the returned result, and you need to find the panel name of VFB.
I looked at the Vray script, vfbPanel was only created before Maya2017, I tried to change the condition, the panel was created, but the content was still in the API created window.
Yes, this requires the support of the Vray developers. Perhaps the solution can be found in Vray's forums.
Can't find what you're looking for? Ask the community or share your knowledge.