Translate or interpolate a layer across multiple frames

Hi @madjackmcmad,

There are a few scripting options out there. I haven’t tried them myself.

There could be even more that my brief search didn’t turn up.

If you have some coding knowledge and/or want to make your own, links to key documentation in the scripting API are below.

Cel position
Frame duration
Sprite frames
Sprite new cel

There’s an extra wrinkle where the cel boundaries in a sprite opened from a gif are not trimmed of excess alpha on load. The simple way to fix this is to use app.command.CanvasSize with trim content active (default keyboard shortcut: C).

It’s a separate deal if you want to move the image contents, as you might if you were wrapping the image around its edges to make an infinite scroller. There’s currently a bug that prevents that from being done easily with built-in commands, but a workaround can be managed if you understand how the % operator works.

Cheers,
Jeremy

2 Likes