Oh yeah the tokenize is in my "weird method". And the "getComponentIndex" could be a solution... My workflow currently works with a "Common" library. For example it means I have a Polygon.mel file and I insert all very basic function I create. I already have several files like that... then for the "getComponentIndex" I…
I always use tokenize for extracting stuff like the path name, namespace, or component index. I only use regular expressions for matching things in string comparisons. For the object name in your example you would tokenize by "|", take the last value from the buffer, then tokenize by "." and take the first value from the…