How to dock the Vray VFB window ?

How to dock the Vray VFB window ?

tjdrbrla
Advocate Advocate
3,457 Views
16 Replies
Message 1 of 17

How to dock the Vray VFB window ?

tjdrbrla
Advocate
Advocate

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.1.png

3,458 Views
16 Replies
Replies (16)
Message 2 of 17

Christoph_Schaedl
Mentor
Mentor

Ask in the official Vray forum.

----------------------------------------------------------------
https://linktr.ee/cg_oglu
0 Likes
Message 3 of 17

loncy888
Enthusiast
Enthusiast

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.

loncy
Message 4 of 17

tjdrbrla
Advocate
Advocate

I ran the mel command with both render view and VFB turned on, but nothing happened.

0 Likes
Message 5 of 17

tjdrbrla
Advocate
Advocate
I ran the mel command with both render view and VFB turned on, but nothing happened.
0 Likes
Message 6 of 17

loncy888
Enthusiast
Enthusiast

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;
}

 

loncy
Message 7 of 17

tjdrbrla
Advocate
Advocate
I entered the first command, but there was no response in the Script Editor window.
I don't know how to find the name of the panel with the second command. When you turn on the VFB window and run the command in the script editor, nothing comes out. Does it work normally on your computer?
Message 8 of 17

loncy888
Enthusiast
Enthusiast

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.

loncy
0 Likes
Message 9 of 17

tjdrbrla
Advocate
Advocate

1.png

Message 10 of 17

tjdrbrla
Advocate
Advocate
Both commands have no response.
There's no "Ui" coming out. How do I get the UI to call up the name of the panel? lSUI -p; No response when entering this command.

I marked the command I entered in the picture, but is there anything I wrote wrong?
Message 11 of 17

loncy888
Enthusiast
Enthusiast
Perhaps you have the Suppress command option enabled in the History menu.
loncy
Message 12 of 17

tjdrbrla
Advocate
Advocate
// Result: clipEditorPanel1 contentBrowserPanel1 createNodePanel1 dopeSheetPanel1 dynPaintScriptedPanel dynRelEdPanel1 graphEditor1 hyperGraphPanel1 hyperShadePanel1 modelPanel1 modelPanel2 modelPanel3 modelPanel4 nodeEditorPanel1 outlinerPanel1 outlinerPanel2 polyTexturePlacementPanel1 posePanel1 profilerPanel1 referenceEditorPanel1 relationshipPanel1 renderView scriptEditorPanel1 sequenceEditorPanel1 shapePanel1 timeEditorPanel1 visorPanel1

You were right I was hiding the consequences. I made it visible again and ran the script, but the value of 0 came out in the VFB window, so I entered the ui command, but the VFB panel was not visible.
Vray's not Maya's renderer program, it's not commanding. Is there any way to do this?
Message 13 of 17

loncy888
Enthusiast
Enthusiast

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. 

 

loncy
Message 14 of 17

tjdrbrla
Advocate
Advocate
From 2017 to 2023, it seems you can't connect VFB windows to panels. Is the command to minimize and switch back impossible?
0 Likes
Message 15 of 17

loncy888
Enthusiast
Enthusiast

Yes, this requires the support of the Vray developers. Perhaps the solution can be found in Vray's forums.

loncy
Message 16 of 17

damaggio
Mentor
Mentor

As pointed out a while ago already by @Christoph_Schaedl .

0 Likes
Message 17 of 17

tjdrbrla
Advocate
Advocate
But thank you for your help!