Need help to rename Shapes


Hello :smile:

Somehow, I ended up with locators that shapes have the exact same name than the object ( ex: Locator1 shape’s name is Locator1, instead of Locator1Shape ).

I tried to run a script to rename all shapes, by adding “Shape” suffix, but after selecting all Shapes I ran my script and of course… ended up with names like “Group|Locator1289|Locator_1289”.

Because I’m really bad in RegExp, could someone help me with a Melscript that would find the last digits of the selection ( 1289 ) and that way, rename the selection with “Locator_”+$digits ?

( btw I was using the ‘substitute’ command to kill unwanted part, before the rename )

Thank you !