Jump to content

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

Link to comment
Share on other sites

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
Link to comment
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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...