I would like to do this programmatically through the Figma Plugin API, currently, there isn’t direct support for toggling the “Fixed Position When Scrolling” property.
This is a manual setting that users must configure in Figma. The plugin API provides limited access to interact with the Figma interface and prototype settings.
And would be a huge help in creating plugins to assist in prototyping.
Can you provide me a code example of how to use it, as the documentation is not helpful. Neither is your reply, saying, yes it’s possible, without an example is not very helpful. Their is no help around this “numberOfFixedChildren” online.
let numberOfFixedChildren;
const newFrame = figma.createFrame();
newFrame.name = "newFrame";
// Align newFrame to the top left of parentFrame
newFrame.x = 0;
newFrame.y = 0;
const imageNode = figma.createImage(imageData);
// Append the new grouped text to the frame
newFrame.appendChild(imageHolder);
// Append the new frame to the parentFrame, not the page
parentFrame.appendChild(newFrame);