Roy Nieterau

colorbleed

About Me

3D Character Animation Studio - from stylized to VFX, based in the Netherlands
EXPERTISE
Technical Director
INDUSTRY
Advertising / Motion Graphics  | Film/TV

Connect

LOCATION
Utrecht, Netherlands

Houdini Skills

Availability

I am available for Contract Work

Recent Forum Posts

How to check if node is camera or light with python Nov. 10, 2024, 5:58 p.m.

> Would be nice to have access to the data it is using to filter them under the hood.

Agreed - interested to hear how Houdini itself filters these. E.g. it can also detect LOP Import Camera in `/obj` is 'a camera' but there doesn't seem to be a `hou.ObjNode` way of querying whether it's a camera in that sense.

Get LopNode.stage() with specific context options Oct. 28, 2024, 5:48 a.m.

For now I ended up computing the context options from the ROP myself and and writing a context options context manager to apply them temporarily. The code is here [github.com].

Get LopNode.stage() with specific context options Oct. 25, 2024, 3:35 a.m.

I'm looking to get the LopNode.stage() with specific context options, but I can't find a LopNode.stage(context_options=my_options) argument or LopNode.cook(context_options) and then LopNode.stage().

I have a bunch of USD Render ROP nodes in /out where each ROP specifies its own context options overrides. Now, I want to validate some things in the USD stage at the LOP path the USD Render ROP would be evaluating. Preferably I'd be able to do something along the lines of:

context_options = get_context_options(rop)
lop_path = rop.parm("loppath").evalAsNode()
with hou.contextOptions(context_options):
    stage = lop_path.stage()


But this is just pseudocode of course.

So,

1. If there's function somewhere that could act as the get_context_options from the ROP node that'd be nice. I checked some loputils and loptoolutils but couldn't find any.
2. And of course some good way to get the stage of the LopNode with those context options from the ROP node.