Jump to content

Unable to find IPRViewer in Houdini 18


ninhenzo64

Recommended Posts

Hi people,

I had some code which I was running to find the rendered image in the "Render View" pane and save it to file.

    _desktop = hou.ui.curDesktop()
    _ipr = _desktop.paneTabOfType(hou.paneTabType.IPRViewer)
    _ipr.saveFrame(_file)

This was running fine in Houdini 17. However, since updating to Houdini 18 (I'm using 18.0.440), the desktop object seems like it can't find the IPR pane, the paneTabOfType method is returning None.

Anyone have any ideas what I can do to get this working?

Thanks,

Henry

Link to comment
Share on other sites

22 hours ago, ninhenzo64 said:

Hi people,

I had some code which I was running to find the rendered image in the "Render View" pane and save it to file.


    _desktop = hou.ui.curDesktop()
    _ipr = _desktop.paneTabOfType(hou.paneTabType.IPRViewer)
    _ipr.saveFrame(_file)

This was running fine in Houdini 17. However, since updating to Houdini 18 (I'm using 18.0.440), the desktop object seems like it can't find the IPR pane, the paneTabOfType method is returning None.

Anyone have any ideas what I can do to get this working?

Thanks,

Henry

Your IPR being your output mantra_IPR? unless you are using another render engine?

Link to comment
Share on other sites

  • 1 year later...

For those coming back to this, it looks like that way is deprecated. But you can do something similar like this

_desktops = hou.ui.currentPaneTabs()
_ipr = [x for x in _desktops if x.type()==hou.paneTabType.IPRViewer][0]
_ipr.saveFrame()
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...