render_dude

render_dude

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Extract layer name July 8, 2020, 1:35 p.m.

I'm trying to debug some USD creation tools (external to Houdini). The USD files are value clips with varying time scales (1:24:1200).

What I would like is to grab the layer stack values in the Solaris desktop (Scene Graph Details -> Layer Stack) without using the Solaris desktop (the USD files are large, and switching to Solaris consumes all the memory, most likely trying to populate the Scene Graph Details pane).

I'm using USDImport SOP and modified the underlying LOPNET to include a Python script that is attempting to extract the layer name. Here's the script:

node = hou.pwd()
stage = node.editableStage()

# Add code to modify the stage.
# Use drop down menu to select examples.
# Hardcode the path for now
prim = stage.GetPrimAtPath('/World/Meshes/mesh_0')

ext = prim.GetAttribute('extent')
f = hou.intFrame()
to = hou.evalParm(“../sublayer1/timeoffset1”)
ts = hou.evalParm(“../sublayer1/timescale1”)
stack = ext.GetPropertyStack(f*ts + to)
layer = stack.layer.realPath

#parm = hou.parm('loaded_layer')
#parm.set(layer.split('/'))

print layer, f*ts + to

Since this isn't working properly (it gets the layer name, but it isn't matching the one in the layer stack), what am I missing, or is there an easier way to get at what I want ( for example, I don't see anything in the Geometry Spreadsheet)?

Mark

Interpolation bug? June 11, 2020, 12:32 p.m.

Doh! Thanks, that makes sense now. I though it was interpolating between 0, but my frazzled brain couldn't quite pull it together.

Throwing an AtrribTransfer after the boolean gives me the answer I was looking for.

Interpolation bug? June 10, 2020, 7:06 p.m.

I have a converter that is generating USD files from scientific data sets. Most of these are 3D meshes with interior polygons carrying dozens of data values translated to USD primvars. I want to clip the data and create a “cap” or patch over the clip to show the interior. It appears to me as if Houdini is interpolating the values incorrectly (the interpolation is per-vertex in USD).

In the attached images and hip, the data is the distance squared from the origin.



The above shows the data values when clipped



Intersecting the data with a grid at the location of the clip gives the image above (the grid is offset from the cube to show the values). Notice the values do not match. One issue with using the boolean is that it results in non-manifold edges.

So (in the hip), I clip the data to a small value that doesn't produce non-manifold edges, and I still get similar results.

Any help is appreciated. The real data sets are significantly larger, so manual tweaking of the data or results is no allowed.

Mark

Image Not Found