replacePrefix

Function

Use to replace the prefix in a heirarchy; e.g. the decoration that Maya adds when importing a scene. This recursively scans the scene for all nodes that have a prefix matching the first argument and renames them with the prefix specified as the second argument. The match is case-sensitive.

Usage

replacePrefix <oldPrefix> <newPrefix>

For example, if you wanted to replace all nodes with the prefix "run_" (e.g. "run_leg_l") with "jump_" (e.g. "jump_leg_l):

replacePrefix run_ jump_

Reload H2O MEL Scripts

Tuesday, October 03, 2000