protean

protean

About Me

Connect

LOCATION
Not Specified
ウェブサイト

Houdini Engine

Availability

Not Specified

Recent Forum Posts

How to set collection:membershipExpression 2025年1月21日6:56

I'm not sure this is possible as I've tried the same thing.

Theoretically I believe this should work

https://openusd.org/dev/user_guides/collections_and_patterns.html#configuring-pattern-based-collections [openusd.org]

collectionPrim = stage.DefinePrim("/CollectionPrim")
myCollection = Usd.CollectionAPI.Apply(collectionPrim, "myCollection")
myCollection.CreateExpansionRuleAttr(Usd.Tokens.expandPrims)
pathExp = Sdf.PathExpression("/World/Light*{hasAPI:LightAPI}")
expressionAttr = myCollection.CreateMembershipExpressionAttr(pathExp)

But the Sdf object doesn't have CreateExpansionRuleAttr() or PathExpression(). It might be a usd version thing but that's as far I got for now

Save Viewport Overrides (scene graph tree) 2025年1月10日9:34

Hi, I'd like to export the Solaris scene graph viewport overrides outwith the current session.

I naively thought something basic such as this would work as I can return the current overrides list and clear them as described here https://www.sidefx.com/forum/topic/86934/?page=1#post-375436 [www.sidefx.com]

s = hou.node('/stage')
db = s.dataBlock('MyOvers.overrides'))
s.setDataBlock('MyNewOvers', db, None)

This is in 19.5 and I notice there might be different using usd layers https://www.sidefx.com/docs/houdini/hom/hou/LopNetwork.html#viewportOverrides [www.sidefx.com]

n = hou.node('/stage')
with n.viewportOverrides(hou.node('/stage/cube1')) as oo:
    oo.layer().Export('test.usda')

I may be missing a vital bit of info but I don't get any result with is either and I noted there is an explanation in the doc that
This layer does not include opinions set using built in Houdini panels.

Is there any other way to save the Scene Graph panel overrides?

MaterialX - Get light ray direction? 2024年12月2日9:13

Hi, I've been trying to do various things related to this. I can get coordsys to do what I need but there is a note in the docs:

PARAMETERS
Space
The space to which the position should be transformed.

Karma supports paths to an xformable prim, or a camera. Also supported are Coordinate Systems.

Coordinate Systems works, as does a camera path but I haven't managed to get 'paths to an xformable prim' to work. Perhaps it's a syntax issue?