Skip to main content

I have 100+ symbols and Adobe Illustrator, I want to move all of the to Figma as components.

All the symbols in one file.

I’m looking for a method to automatlically export all the symbols with their names, and create Figma components from all of them.


There is a method or script for that?


If not, and you’re willling to help with that (and getting paid), please let me know using this form.

I would like to update you that I did it by myself. In couple of minutes by small Figma Script, I would like to share with you if someone else need.


First I copy all the Symbols from AI to Figma. The symbols copies as groups, not as components.


I wrote the script below to convert those group to symbols. Open your Console, and paste this script:


for (topFrame of figma.currentPage.children) {
frames=topFrame.findAll(x=>x.type=='FRAME')
for(var frame of frames) {
console.log(frame.name)
console.log(frame)
fx=frame.x
fy=frame.y
const component = figma.createComponent()
topFrame.appendChild(component)
component.resizeWithoutConstraints(frame.width, frame.height)
for (const child of frame.children) {
component.appendChild(child)
}
component.name=frame.name
component.x=fx
component.y=fy
frame.remove()
}
}

Nice! Thanks @Aminadav_Glickshtein - I modified your topic title a bit to make it easier to surface. Anyone who is looking for a similar solution should be able to find your solution.


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.