The use-case is for bringing in content generated in other apps that like to prefix all their scene items with a namespace.
In my testing I have a scene formed of prims like:
/ |_ foo_one |_ foo_two |_ foo_three
If I set a restructure sg node's operation to 'Rename Primitives', specify a primitives filter of '*' (or '**'), and use an expression along the lines of
old name: foo_* new name: *
the top-level prim is renamed fine from 'foo_one' to 'one', but the child prims are left alone. If I chain up duplicates of the restructure node so the action is repeated they all get renamed (assuming I have enough copies of the node).
So my guess is that (in the single-node case) when the first rename operation is applied the child prims no longer match the original list of prims to operate on (as their full paths have changed) so are skipped.
Any suggestions for how to do a recursive rename? Am I just missing something on the restructure node, or does this need a different approach - possibly with a for-each? I'm having no luck with a loop and the usage is a little abstruse...
cheers