nord3d Posted October 10, 2014 Share Posted October 10, 2014 (edited) Hi Volumes in Houdini can store data in 16-bit float, but i wonder, how to extract such data in Python. For point attributes, i can use something as: geo.pointFloatAttribValuesAsString("a", float_type=hou.numericData.Float16) ( thanks for ali , http://forums.odforce.net/topic/19848-numpy-question/?hl=float_type#entry119038 ) But for volume, the "similar" method, allVoxelsAsString() , haven't any parameter for explicitly set data type (other then the default Float32). Is there solution other then extract 32-bit data from initially 16-bit(!) volume and then convert it back to float16 ? Thanks in advance Edited October 10, 2014 by nord3d Quote Link to comment Share on other sites More sharing options...
edward Posted October 10, 2014 Share Posted October 10, 2014 Offhand, I don't see any other way in Python. Quote Link to comment Share on other sites More sharing options...
nord3d Posted October 10, 2014 Author Share Posted October 10, 2014 (edited) Thanks, edward. Offhand, I don't see any other way in Python. May be, via HDK? PS: Practically, i need a pointer to that data. Edited October 10, 2014 by nord3d Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.