RyanJP Posted September 28, 2022 Share Posted September 28, 2022 Hi there, I'm merging two FBX skeletons together and I'm wondering what the best way is to unify their vastly different "Name" and "Path" attributes so I can export to other packages painlessly. Thank you Quote Link to comment Share on other sites More sharing options...
bunker Posted September 29, 2022 Share Posted September 29, 2022 (edited) you can do that with VEX or Python https://www.sidefx.com/docs/houdini/vex/functions/re_replace.html https://pythonexamples.org/python-re-sub/ Edited September 29, 2022 by bunker 1 Quote Link to comment Share on other sites More sharing options...
bunker Posted September 29, 2022 Share Posted September 29, 2022 (edited) // two simple examples (VEX): s@path = "/geo/path/Char01/body/arm/hand"; s@path2 = re_replace("Char","Human_",s@path); // result: /geo/path/Human_01/body/arm/hand string s1 = re_replace("/","_",s@path); string s2 = re_replace("_geo_path_","/",s1); s@path3 = s2; // result: /Char01_body_arm_hand Edited September 29, 2022 by bunker 2 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.