Peter Plevritis

wayward

About Me

INDUSTRY
Film/TV

Connect

LOCATION
United States
ウェブサイト

Houdini Skills

Availability

Not Specified

Recent Forum Posts

usdmaterialpath within SOP Modify 2024年3月28日0:21

Here's the simple/basic code to get the usd path. This is in a Python SOP inside a SOP Modify node. This is after a Material Library and Assign Material.

node = hou.pwd()
geo = node.geometry()

prims = geo.prims()
for primN in prims:
val = primN.attribValue('usdmaterialpath')
print( 'val', val )

usdmaterialpath within SOP Modify 2024年3月26日14:18

Within a SOP_Modify I'm using a python node to access the usdmaterialpath attribute of imported geo. This gives me the material path as a lop/usd path (/materials/materialName).

I would like to access that material (within this SOP_Modify) to query a few parameters of that material.

How do I resolve that path to that node within a SOP_Modify? How do I access that LOP material node's attributes via python within a SOP_Modify?

Thanks for any help.

skip rendered frames? 2023年1月12日12:51

I would also really like a 'Skip Rendered Frames' option added to husk. Simple idea but very useful.

Pete