Jump to content
dupevfx

Prim Attr to group for material assignment

Recommended Posts

Hey,

Trying to workout a good asset workflow coming from Maya to Houdini.

Geometry wise we are using Alembic and I'd like to add an attribute in Maya (or similar method) to define what materials are assigned to what geometry (shape assignment, never face assignment). Then in houdini use that attribute to assign materials to the alembic cache.

So far I've managed to add a string attr to the shape nodes in Maya and export that into houdini fine. Once the alembic is unpacked I can see the attributes there.

I cant seem to get those prim attributes to be used in the material node downstream though, as you could do with groups for instance.

 

Any tips would be much appreciated, or other workflows that could be better.

 

Cheers

Share this post


Link to post
Share on other sites
Posted (edited)

Hey mate, the syntax for using an attribute as a group is slightly different. If you wanted to use the string name attribute for example:

image.png.2586542b8bfaaea709fc2d944d830716.png

Or alternatively, if you wanted to use anything beginning with "prim_" 

image.png.cba094a08ec73896fb90f4f37f5dfd94.png

Hope this helps.

Edited by aaronsmith93
  • Haha 1

Share this post


Link to post
Share on other sites
1 hour ago, aaronsmith93 said:

Hey mate, the syntax for using an attribute as a group is slightly different. If you wanted to use the string name attribute for example:

image.png.2586542b8bfaaea709fc2d944d830716.png

Or alternatively, if you wanted to use anything beginning with "prim_" 

image.png.cba094a08ec73896fb90f4f37f5dfd94.png

Hope this helps.

Thanks for the quick reply mate, thats exactly what I was after!

Share this post


Link to post
Share on other sites

Another extension of this topic, right now I seem to have to unpack the alembic to be able to see the attributes downstream, is that normal or am I missing something?

 

File:Image.png

Share this post


Link to post
Share on other sites

Totally normal :)

Though you can save yourself the trouble of unpacking/converting every time in the Geometry menu:

image.png.6e4e37427f26c03a813a99be28b4c633.png

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×