python SIM_SopGeometry

   4583   6   1
User Avatar
Member
31 posts
Joined: Nov. 2006
Offline
Hi i have a question about HOM i've extracted data from dop simulation, and the type is SIM_SopGemetry. It is possible to save it to obj ? or other format ? i know that hou.Geometry can save data, but how to change hou.DopData to hou.Geometry ?
please help
User Avatar
Member
54 posts
Joined:
Offline
i have a similar question…

how do you access the actual the geometry contained in that data? and can you modify it from a python solver?

same question for SDF data, can you sample an SDF contained within a DOP from a python solver?
User Avatar
Member
31 posts
Joined: Nov. 2006
Offline
hey, i don't know nothing about modification data by python solver
here it's how i access to Geometry data:

def dopgeometry(dopnetwork):
dopnet = hou.node(dopnetwork)
objList = dopnet.simulation().findAllObjects(“*”)
for obj in objList:
geometryData = obj.findSubData(“Geometry”)
print(geometryData)

but now i'm wondering what can i do with this data, it is possible to modify it ? it's possible to save it to file as bgeo, obj ? how can get information about number of primitives, points ?
cheers
User Avatar
Member
54 posts
Joined:
Offline
yes that's as far as i got as well, so we're hitting the same wall ;-)
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
There's currently no way to get a hou.Geometry representation from the geometry of a Dop object. You also can't set the geometry either. There's an existing RFE, 34368, for the ability to get and set Dop object geometry using hou.Geometry objects.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
31 posts
Joined: Nov. 2006
Offline
Thanks for answer, but what is RFE ? :roll:
User Avatar
Member
7725 posts
Joined: July 2005
Offline
bareya
Thanks for answer, but what is RFE ? :roll:

Request For Enhancement.
  • Quick Links