A little card. A lot of reassurance. Help from The Card Project UK.
The Card Project UK
PersoFiles · Script reference

gradient

← All appearance commands

gradient

Set the two stop colours of an existing two-stop linear/radial gradient by its stable ID. Colours are #RRGGBB or #RRGGBBAA. Updates every object using that gradient.

gradient gradientId firstColour lastColour

Examples

gradient gF "#3032fe" "#2d2ffe"
Scripts edit only the loaded draft. They do not save, publish releases, delete assets or execute JavaScript. A successful run is one Undo step. Failed runs apply no design edits. Reference syntax is inspired by CFQL assignment/separators, not a promise to execute every legacy CFQL command.

Scripting engine 1.0.0 · This reference is generated from the implemented command catalogue.