Yasin Hasanian
YasinH
About Me
EXPERTISE
CG Supervisor
INDUSTRY
Film/TV
Houdini Skills
Availability
Not Specified
My Gallery
Recent Forum Posts
Husk - what does exr metadata renderMemory, renderTime... Dec. 28, 2022, 2:41 p.m.
Bumping this thread...
How to query USD prim World Bounding Box Dec. 7, 2022, 7:55 p.m.
A very simple question which seems to be tricky to figure out! All geom prims have a World Bounding Box shown in Solaris Scene Graph Details. How does one access that via Python and Vex?! I've tried the following, but I get inconsistent results that are not the same as what's shown in Scene Graph Details!
from pxr import Usd, UsdGeom
node = hou.pwd()
stage = node.editableStage()
prim = stage.GetPrimAtPath('/scene/geo/cube')
bbox_cache = UsdGeom.BBoxCache(0, ['default'])
bbox = bbox_cache.ComputeWorldBound(prim).box
print bbox
Remove primitives by attribute via VEX Aug. 18, 2021, 5:52 p.m.
I have an alembic named
light_geo
that has path
attribute in it which are the geos it contains. I'd like to use specific geos(path) from this as a mesh light which would get plugged into "Geometry Object" parameter on the light. However, this parameter reads the whole object (e.g. ../light_geo
). Is there any way to exclude parts of it in the same parameter via an expression? I can of course use a blast node and remove path primitives but I'd rather do it all in the Geometry Object parameter.