I gave it a play and actually found a small tweak that I needed to add to
my original blog example, which was also the reason it was failing when you
tried switching to a Render View in the panel. It needed a parent
paneLayout.

Here is a modified gist, where it starts with embedding the Render View:
https://gist.github.com/justinfx/9027370

The downside, from this quick test, is that because the renderView is a
unique scripted panel, there can only be one. If another panel switches to
it, it will grab it away from your panel. And if the actual Render View
window is brought up, it will grab it and disable the selection from other
panels until it is closed. So I am not sure if that it something you want
to work around or not.

In that same gist, I added a second file of something playing around with
the callbacks for the Render View. It shows how you could watch the panel
callbacks of the Render View and update your own panel. So maybe, for
instance, if you lose the Render View panel, you switch to something that
indicates  "Render View panel lost", and maybe show a button to grab it
back. And when it gets removed from another view, you could check where it
is, and if no one else is viewing it you could grab it back automatically.




On Sun, Feb 16, 2014 at 12:08 PM, Justin Israel <[email protected]>wrote:

> I can give it a test later today and report back.
>  On Feb 16, 2014 12:01 PM, "Mark Serena" <[email protected]> wrote:
>
>> Yeah, doing it once it's rendered and displaying the image will be the
>> way I'll end up doing if I can't get it to work.
>>
>> Hey Justin, I tried the example on your website to embed Maya windows in
>> qt, but changing the modelpanel  from persp/camera to renderview threw an
>> error line 1 with no other info.
>> On Feb 16, 2014 9:35 AM, Justin Israel <[email protected]> wrote:
>>
>> I've taken viewports and embedded them into my own Qt app to provide
>> independent scene navigation.
>> If the renderview is a Singleton instance,  then it wouldn't work the
>> same way that I have done it. My approach has been to create a new viewport
>> to embed.
>> On Feb 16, 2014 1:50 AM, "Mark Serena" <[email protected]> wrote:
>>
>>> Hey,
>>>
>>> Just wanted to get a helpful push in the right direction if anyone
>>> knows. I want to be able to insert the maya renderview (just the
>>> rendering/rendered image) into my own qt layout to enhance it a bit with
>>> some tools, but before I go too far I just wanted to see if anyone knows if
>>> it is even possible to do such a thing? If not then it will only be a post
>>> rendered tool.
>>> My searching hasn't really shown me if it's entirely possible.
>>>
>>> Thanks,
>>> Mark
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/8fe547dc-ebd2-4790-a041-73e8b3927eee%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/python_inside_maya/pTUd6aYeQCg/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA38Ec7UjhWBh2dbHp4xXqK-8%3DWVrRSj6-seXJpi_8eeWQ%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA13%3DuQ__rwki0EqcSkfz9Uko2xXW2wwF2DwUxAJGMMMoA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to