procedurally rename bone names in VEX

   181   3   2
User Avatar
Member
88 posts
Joined: 2月 2014
オフライン
Hello

I want to procedurally rename some bone names in a point wrangle.
So the input is "left_A_leg_0", "left_A_leg_1", etc
and I need it to become "left_A_leg_sknjnt_0", "left_A_leg_sknjnt_1", etc

What is the correct function and how do I need to declare it?

Thank you
Michiel
User Avatar
Member
612 posts
Joined: 11月 2005
オフライン
Hi, if Your input naming is very consistent You can use a wrangle or vop to insert this:
string elems [];
elems = re_split("_", s@name);
insert(elems, 3, "Insert"); // This inserts "Insert" at the 3 place in Your string
s@name = join(elems, "_");
Edited by sanostol - 2026年1月26日 07:29:02
User Avatar
Member
8095 posts
Joined: 7月 2005
オフライン
Note that the Attrib String Edit SOP can also rename strings inside the boneCapture attribute using patterns.
User Avatar
Member
88 posts
Joined: 2月 2014
オフライン
Thank you!
  • Quick Links