Based on the plugin Effect API page, I would assume this is the right format for assigning an drop shadow to a node:
newFrame.effects = [{
type: “DROP_SHADOW”,
color: {r: 0, g: 0, b: 0, a: 1},
offset: { x: 0, y: 4},
radius: 4,
}];
Unfortunately it fails silently. Anyone know how to do this properly?
Also, for any Figma team members out there, would be great to:
- Get an error that highlights the malformed property causing this to fail
- Have an example on the API page