Problem
I have to change in bulk 850 images that we have uploaded in a CMS and the only way to be able to re-import the images correctly is to have the same reference name as the previous image or page ID.
Solution
It would be nice to have an option to get this value from a Sheet also.
The solution I propose is to use a special nomenclature for naming layers to differentiate them from the #column_name of the content. It could be this structure ^#column_name. In order not to lose the reference, I would not replace the name of the reference and append the name obtained from Google Sheets at the end of the word (e.g. ^#column_name - 68758398`). With this name, I can now use the native layer renaming tool to clean up the initial reference of each layer name.
Describe alternatives you've considered
I've tried plugins like Rename it, Renamed, and Clean Document, but any of them can rename the layers from a Sheet.
I have a Google Sheet page with 31 items that I had imported in Figma. This generated 31 instances of a component.
I needed to organized the instances in special rows and columns.
I had to re-import everything due to a change in one of the components.
The import process broke, because it could not deal with updating the data within the components in the new page structure.
Solution
Using the plugin A Selector, select all the instances with the data within your layer. For instance: card_component
Using Figma's rename feature, change the name of your selected instances to add the number of the item in your Google Sheets files. For instance: card_component is renamed to card_component.1, card_component.2, card_component.3, etc.
Re-import your data using the plugin as usual, making sure to import to the layer that hold all the renamed instances.
Problem I have to change in bulk 850 images that we have uploaded in a CMS and the only way to be able to re-import the images correctly is to have the same reference name as the previous image or page ID.
Solution It would be nice to have an option to get this value from a Sheet also.
The solution I propose is to use a special nomenclature for naming layers to differentiate them from the
#column_name
of the content. It could be this structure^#column_name
. In order not to lose the reference, I would not replace the name of the reference and append the name obtained from Google Sheets at the end of the word (e.g. ^#column_name - 68758398`). With this name, I can now use the native layer renaming tool to clean up the initial reference of each layer name.Describe alternatives you've considered I've tried plugins like Rename it, Renamed, and Clean Document, but any of them can rename the layers from a Sheet.
Additional context Example of the idea