Accessing viewport texture buffer

   1170   2   1
User Avatar
Member
101 posts
Joined: Dec. 2012
Offline
I couldn't find any method's that are exposed to the Python API to grab the viewport texture buffer, is there a built-in way or would I need to create a render hook with the HDK? Thanks for any hints.
User Avatar
Member
806 posts
Joined: Oct. 2016
Offline
Moin,

according to the search function, this thread [www.sidefx.com] discusses a way of saving out a screenshot from your viewport. Admitingly I haven't tried it, my last attempts to do something like this failed, so I used a flipbook render instead.
I hope this helps.

Marc
---
Out of here. Being called a dick after having supported Houdini users for years is over my paygrade.
I will work for money, but NOT for "you have to provide people with free products" Indie-artists.
Good bye.
https://www.marc-albrecht.de [www.marc-albrecht.de]
User Avatar
Member
101 posts
Joined: Dec. 2012
Offline
Thanks @malbrecht, even though I've considered viewwrite, I wan't to actually keep the texture object in memory without writing it to disc for some realtime streaming. I'll probably need to go the hdk way, but during my testing, I've found this repo, which is good ressource if someone tries to figure out viewwrite.

https://github.com/kredencstudio/pyblish-kredenc/blob/c2dc0da4860737e2831bc3c0f8c3172aa890e53e/pyblish_kredenc/plugins/houdini/extract_preview.py [github.com]
  • Quick Links