Jump to content

Shop_Materialpath as primitive group


Recommended Posts

Hello everybody !

I have a little problem with an fbx that I import on houdini. The object contains several textures, the concern is that to apply them I have to use groups. The fbx contains the shop_materialpath attribute, but I don't know how to use it to assign my different textures ...

It seems to me that the easiest would be to use this attribute to create groups to finally assign the textures to these different groups?

But I don't know how to "extract" this attribute to do something else ...

Capture d’écran 2021-09-29 092322.jpg

Link to comment
Share on other sites

As crude as it sounds, I'd just drop down an attribute wrangle and run it over the primitives.

if(s@shop_materialpath== "[DA01/2] 3_Twigs"){s@shop_materialpath = "/mat/twigs";}
if(s@shop_materialpath== "[DA01/2] 2_Branches"){s@shop_materialpath = "/mat/branches";}

You could create groups instead, but if you just need the materials reassigned you don't have to actually create groups for that.

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.

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...