Is it possible to write a Python script to realize the function of path mapper? for exampe {a} -> {a + 66}

Hi everyone,

The path mapper is a powerful function to change the data tree path, however, if I want to realize it using a Python script, how should I do?


use the renumber paths string method.
1 Like

In general via code you can do anything imaginable with regard path(s) dimension indices.

But if you insist on GH_Lexer.PerformLexicalReplace matters translate the attached (and modify it accordingly) into P - note: no auto translation available. (40.2 KB)

1 Like