Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to dock the Vray VFB window ?

16 REPLIES 16
Reply
Message 1 of 17
tjdrbrla
1332 Views, 16 Replies

How to dock the Vray VFB window ?

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

16 REPLIES 16
Message 2 of 17

Ask in the official Vray forum.

----------------------------------------------------------------
https://linktr.ee/cg_oglu
Message 3 of 17
loncy888
in reply to: tjdrbrla

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
in reply to: tjdrbrla

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

Message 5 of 17
tjdrbrla
in reply to: loncy888

I ran the mel command with both render view and VFB turned on, but nothing happened.
Message 6 of 17
loncy888
in reply to: tjdrbrla

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
in reply to: loncy888

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
in reply to: tjdrbrla

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
Message 9 of 17
tjdrbrla
in reply to: tjdrbrla

1.png

Message 10 of 17
tjdrbrla
in reply to: loncy888

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
in reply to: tjdrbrla

Perhaps you have the Suppress command option enabled in the History menu.
loncy
Message 12 of 17
tjdrbrla
in reply to: loncy888

// 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
in reply to: tjdrbrla

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
in reply to: loncy888

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

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
in reply to: tjdrbrla

As pointed out a while ago already by @Christoph_Schaedl .

Message 17 of 17
tjdrbrla
in reply to: loncy888

But thank you for your help!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report