Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Replacing part of name with nothing?
  RSS 2.0 ATOM  

Replacing part of name with nothing?
Rate this thread
 
62142
 
Permlink of this thread  
avatar
  • Total Posts: 194
  • Joined: 11 March 2011 08:40 AM

a joint called:

jt_lt_ArmBone

I want to replace the “Bone” with nothing:

jt_lt_Arm

and say I want to do this with like 50 joints.
basically just to find the word “Bone” and take it out.

is this possible with MEL?



Replies: 0
avatar

I use the Comet Rename script. It’s part of the Comet Tools (some others of which you may find useful), from Michael Comet: http://www.comet-cartoons.com/.  Usually, I am replacing prefixes, but what you do is select all the joints you want to rename, set the search field to “Bone” and the replace field leave empty.

<* Wes *>



Replies: 0
avatar
  • ldunham1
  • Posted: 21 November 2011 10:40 AM

or you could use maya’s search and replace tool under the edit or modify menu, saves having to download anything.

search for “Bone”, replace with “” (leave field blank).



Lee Dunham | Character TD
ldunham.blogspot.com

Replies: 0
avatar

replacing with a blank doesnt seem to work. I get a error: wrong arguments.



Replies: 0
avatar
  • ldunham1
  • Posted: 21 November 2011 08:55 PM

ahh my bad, try the cometRename tool. I was sure it worked though… must’ve been mistaken for the scriptEditor’s search and replace…



Lee Dunham | Character TD
ldunham.blogspot.com

Replies: 0
avatar
  • Red9
  • Posted: 22 November 2011 10:55 PM

you can’t leave the field “” blank, you need to give it a “ “ space otherwise Maya moans



Replies: 0
avatar
  • Woxx
  • Posted: 25 November 2011 01:30 AM

Doesn’t the search and replace work on joints? Cant get it to work on joints :/



Replies: 0