21   set_program_brief(
"rename nodes in .egg files");
    22   set_program_description
    23     (
"egg-rename reads one or more egg files and writes back with modified"    24      "node names. ie. suppressing prefix from all the nodes' names. ");
    27     (
"strip_prefix", 
"name", 0,
    28      "strips out the prefix that is put on all nodes, by maya ext. ref",
    29      &EggRename::dispatch_vector_string, 
nullptr, &_strip_prefix);
    37   if (!_strip_prefix.empty()) {
    38     nout << 
"Stripping prefix from nodes.\n";
    40     int num_egg_files = 0;
    42     for (ei = _eggs.begin(); ei != _eggs.end(); ++ei) {
    43       num_renamed += (*ei)->rename_nodes(_strip_prefix, 
true);
    46     nout << 
"  (" << num_renamed << 
" renamed.)\n";
    53 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,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.