Mirroring Workspace Window

Mirroring Workspace Window

MikeSSSS
Enthusiast Enthusiast
1,477 Views
6 Replies
Message 1 of 7

Mirroring Workspace Window

MikeSSSS
Enthusiast
Enthusiast

Hi,

 

I am currently working with the Maya C++ API, and I am wanting to 'mirror' just the workspace window so I can put it on a bigger display (i.e. a second monitor).  I've looked through some of the devkit samples (viewRenderOverride which isn't quite what I want, since I want an actual second window rather than modifying the current one), but I am wondering if anyone can give me some ideas about the approach to take?

 

I am thinking I either need to get a 'handle' to the viewport window somehow, and then maybe draw it again in perhaps even a separate application? Or otherwise I can use the C++ API and get the handle, and then 'showWindow'?

 

Thanks for any help, and I can try to provide more details if the above description does not make sense.

0 Likes
Accepted solutions (1)
1,478 Views
6 Replies
Replies (6)
Message 2 of 7

jmreinhart
Advisor
Advisor

when you say "workSpace" do you mean "viewPort"? 

jonahrnhrt_0-1595143718684.png

Is this the sort of thing you are trying to do (sorry I don't have two monitors for a better example)? Or do you want to clone the entire Maya window?

 

Message 3 of 7

MikeSSSS
Enthusiast
Enthusiast

Yes, exactly! Just trying to generate another separate window of the persepctive view (Sceneview)

0 Likes
Message 4 of 7

jmreinhart
Advisor
Advisor
Accepted solution

if you go panels>tear off copy. That should get you what you want. The only limitation is that camera moves only occur you release the mouse in the second viewport, but everything else is an interactive duplicate.

Message 5 of 7

MikeSSSS
Enthusiast
Enthusiast

Perfect, I was able to open up the script editor and enabled 'echo all commands' and figure out the MEL command for creating the panel as you said. Thank you for your help!

 

Any insights into how to work with the panel on the C++ end? I want to grab a handle to the second window and start modifying some properties of the cloned window.

0 Likes
Message 6 of 7

jmreinhart
Advisor
Advisor

Sorry I don't have much experience with that part of the API. OpenMayaUI.M3dView is probably the class you'll need to look into.

0 Likes
Message 7 of 7

MikeSSSS
Enthusiast
Enthusiast

Thank you for your help!

0 Likes