15 #include "eggRename.h"
25 set_program_brief(
"rename nodes in .egg files");
26 set_program_description
27 (
"egg-rename reads one or more egg files and writes back with modified"
28 "node names. ie. suppressing prefix from all the nodes' names. ");
31 (
"strip_prefix",
"name", 0,
32 "strips out the prefix that is put on all nodes, by maya ext. ref",
33 &EggRename::dispatch_vector_string, NULL, &_strip_prefix);
43 if (!_strip_prefix.empty()) {
44 nout <<
"Stripping prefix from nodes.\n";
46 int num_egg_files = 0;
48 for (ei = _eggs.begin(); ei != _eggs.end(); ++ei) {
49 num_renamed += (*ei)->rename_nodes(_strip_prefix,
true);
52 nout <<
" (" << num_renamed <<
" renamed.)\n";
59 int main(
int argc,
char *argv[]) {
virtual void parse_command_line(int argc, char **argv)
Dispatches on each of the options on the command line, and passes the remaining parameters to handle_...
A program to read an egg file and write an equivalent egg file, with stripping prefix for now...