figma.buzz
The Buzz API provides methods for creating and managing media content in Figma Buzz. Please see the Working in Buzz guide for how to use these functions.
This API is only available when your plugin is running in Figma Buzz (figma.editorType === 'buzz').
createFrame(rowIndex?: number, columnIndex?: number): FrameNode
Creates a new frame in Buzz, optionally positioned at specific canvas coordinates.
createInstance(component: ComponentNode, rowIndex: number, columnIndex?: number): InstanceNode
Creates an instance of a component in Buzz, optionally positioned at specific canvas coordinates.
getBuzzAssetTypeForNode(node: SceneNode): BuzzAssetType | null
Gets the Buzz asset type for a given node.
setBuzzAssetTypeForNode(node: SceneNode, assetType: BuzzAssetType): void
Sets the Buzz asset type for a given node.
getTextContent(node: SceneNode): BuzzTextField[]
Extracts all text content fields from a node for dynamic content management.
getMediaContent(node: SceneNode): BuzzMediaField[]
Extracts all media content fields from a node for dynamic content management.
smartResize(node: SceneNode, width: number, height: number): void
Performs intelligent resizing of a node while maintaining layout integrity and aspect ratios.