I have the below JSON
{
“Pages”: [
{
“Text”:“Hi”
},
{
“Text”:“Hello”
}
]
}
I’m looping through it to create the Pages, Frame an d Text. It is working, but the Page 1 is coning blank. “Hi” is getting into Page 2 and “Hello” is getting into Page 3. How do I make it to come in Page 1 and Page 2?
I’m doing something like,
const page = Figma.createPage();
const frame = Figma.createFrame();// some code here
Figma.currentPage = page;
Figma.currentPage.appendChild(frame);// some code here
frame.appendChild(text);