Converting grid to image and writing out png?
3056 5 2-
- mgbaker
- Member
- 88 posts
- Joined: April 2020
- Offline
Dear Experts,
This is probably super simple, but I haven't managed to figure it out. I have a grid upon which I've applied some colors, and I'd like to write it out as a png -- as if the grid and its colors were a photo. I've tried using the "Save > Texture UV to Image" menu option on uvtexture, but it seems to hang (see attached .hip example). I've tried using the python hou.saveImageDataToFile() method, but I can't figure out how to get the grid data into the required image format first.
Does anyone have suggestions? Do I need to move the data to a COPS network instead?
Thanks so much,
Mary
This is probably super simple, but I haven't managed to figure it out. I have a grid upon which I've applied some colors, and I'd like to write it out as a png -- as if the grid and its colors were a photo. I've tried using the "Save > Texture UV to Image" menu option on uvtexture, but it seems to hang (see attached .hip example). I've tried using the python hou.saveImageDataToFile() method, but I can't figure out how to get the grid data into the required image format first.
Does anyone have suggestions? Do I need to move the data to a COPS network instead?
Thanks so much,
Mary
Edited by mgbaker - June 1, 2021 14:48:06
-
- ajz3d
- Member
- 654 posts
- Joined: Aug. 2014
- Offline
-
- mgbaker
- Member
- 88 posts
- Joined: April 2020
- Offline
-
- Konstantin Magnus
- Member
- 720 posts
- Joined: Sept. 2013
- Offline
mgbaker
Do I need to move the data to a COPS network instead?
From what I've seen and done, you would first store the color values in a two-dimensional voxel field to then import them into COPs using the SOP import node.
I've uploaded various ways though on this page:
https://forums.odforce.net/topic/47032-weathering-texture-tool/ [forums.odforce.net]
This one might be close to what you need, albeit not simple:
https://forums.odforce.net/topic/47032-weathering-texture-tool/?do=findComment&comment=219309 [forums.odforce.net]
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
-
- mgbaker
- Member
- 88 posts
- Joined: April 2020
- Offline
-
- ajz3d
- Member
- 654 posts
- Joined: Aug. 2014
- Offline
-
- Quick Links

