nilsoncardososa Posted March 19, 2019 Share Posted March 19, 2019 Hello How do I convert the shop_materialpath attribute into groups of primitives Quote Link to comment Share on other sites More sharing options...
3dome Posted March 19, 2019 Share Posted March 19, 2019 (edited) if they follow the same naming convention you can do something like group_`strreplace(s@shop_materialpath, "/mat/_Kitbash3d_StreetSide", "")` for further string manipulation look up the various functions (possibly even doing it in a wrangle, export as attrib and create group from that attrib) Edited March 19, 2019 by 3dome Quote Link to comment Share on other sites More sharing options...
nilsoncardososa Posted March 20, 2019 Author Share Posted March 20, 2019 I could not do what I said. I'm new to houdini, you have to do this process in a .hip file, so it's clearer for me to understand. Quote Link to comment Share on other sites More sharing options...
splegare Posted March 20, 2019 Share Posted March 20, 2019 You can fill in a base group in a group sop using vex: @shop_materialpath="/mat/_Kitbash3d_StreetsSideMetalDark" convert_shop_mat_to_group.hip 3 Quote Link to comment Share on other sites More sharing options...
nilsoncardososa Posted March 21, 2019 Author Share Posted March 21, 2019 that worked ! Thanks a lot for the help Quote Link to comment Share on other sites More sharing options...
krishna avril Posted December 27, 2021 Share Posted December 27, 2021 can we run some sort of code in vex or python to automate this grouping stuff with N no.of materials attrib? Quote Link to comment Share on other sites More sharing options...
davidyannick Posted December 27, 2021 Share Posted December 27, 2021 (edited) 7 hours ago, krishna avril said: can we run some sort of code in vex or python to automate this grouping stuff with N no.of materials attrib? May be Partition SOP Sorry I didn't see previous answers Edited December 27, 2021 by davidyannick mistake Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.