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.