A new script Utilities > ViewIdReplace should appear as an auto update soon.
Especially during script testing, but also more generally when processing, I often end up renaming the id's of newly created views and previews.
I envision a view id renaming script that accepts a pattern and a replacement string. Multiple instances of this script may be created in the workspace.
Then I drag the appropriate instance onto the view or preview rather than manually renaming.
Here are some examples.
• When I drag a view to create a clone, I want to replace the "_clone" in the name with something else like "_work". This will do it.
So you launch the script, specify a pattern and a replacement, drag an instance onto the workspace, optionally give it a name, and then drag it to the view you want to rename.
• When I create a new preview, I want to replace the "Preview01", or whatever the ending digits are, with something else like "work". This will do it, using a regular expression of the form /pattern/. Here the "." matches any character, and the "*" matches the preceeding pattern 0 or more times. So ".*" matches anything, and the entire id gets replaced with "work":
• When I open two images with the same name, I end up with digits appending one or both, like "integration" and "integration1". Maybe I want to replace the ending digits, if present or not, with something else like "_work". This will do it. "\d*" matches 0 or more digits, and "$" matches the end of the id, so the replacement applies only at the end:
The documentation has a couple more examples, and both the documentation and tooltips show the various pattern options that are available.
Note when the script is open, you cannot drag an instance directly onto a view (error appears), you must drag it onto the workspace, dismiss the script, and then drag the instance. This limitation may be removed in a future release.
Thanks,
Mike