Version 1, Update 127
Motion support in the Plugin API
You can now use the Plugin API to read and update Motion animation data, including animation styles, timelines, animations, and manual keyframe tracks.
New methods
figma.motion.figmaAnimationStyles(): Read the Motion animation styles available in a file.figma.motion.physicalSpringToNormalized(): Convert physical spring parameters to Motion's normalized bounce value from 0 to 1.applyAnimationStyle: Apply a Motion animation style to a node.removeAnimationStyle: Remove an applied Motion animation style from a node.applyManualKeyframeTrack: Apply or replace a manual Motion keyframe track on a node.removeManualKeyframeTrack: Remove a manual Motion keyframe track from a node.setTimelineDuration: Update the duration of a Motion timeline.
New properties
animationStyles: Read the Motion animation styles currently applied to a node.animations: Read all Motion animation keyframes on a node, including keyframes created by animation styles and manual keyframe tracks.manualKeyframeTracks: Read the manual Motion keyframe tracks bound to a node.timelines: Read the Motion timelines that contain a node.
Shaders in the Plugin API
You can now use the Plugin API to discover, import, and apply shaders.
New methods
figma.listAvailableShaders(): List every shader available to the current file — shaders already in the file, shaders from subscribed libraries, and the user's owned shaders.figma.importShaderById(): Materialize a shader into the current file so it can be applied.
New types
Shader,ShaderPropertyDefinition, andShaderPropertyValuedescribe a shader and its configurable properties.ShaderEffectandShaderPaintare new{ type: 'SHADER' }members of theEffectandPaintunions. Apply a shader by setting one of these on a node'seffects,fills, orstrokes, and configure it through thepropertiesmap.