Been finding more and more uses for Retrobatch! The animated node solves a lot of photoshop work I used to do. But! I typically use these for flashes of artwork - where 1fps is way too slow and 5fps is way too fast. Is there a way of getting the in between? 3fps might be the perfect in between!
I think for GIF files, there might be a set value that you have to use. However, for PNG files you can get more precise. If you look at the release notes ( Retrobatch Release Notes ) for Retrobatch 1.3.1, January 1st, 2020, you’ll see the following line:
You can set the FPS per image frame using the following code snippet in a JavaScript node. The JavaScript node should be placed before the Animation node.
function processAsset(document, jsnode, asset) {
// Set the FPS of this frame to something between 0-60
asset.setUserValue_forKey(Math.random() * 60, "animationFramesPerSecond");
return true;
}
Instead of Math.random() * 60
, you could just put in 3
or 2
.
Oh nice! I will try that out! Thank you immensely!
So yeah… it’s not working, but I’m not sure why. The gifs seems to
But I’m unclear if I repace that whole line with 3
function processAsset(document, jsnode, asset) {
// Set the FPS of this frame to something between 0-60
asset.setUserValue_forKey 3, “animationFramesPerSecond”);
return true;
}
Or just replace 60 with 3.
Both ways don’t seem to have an effect, writing as png or gif.
In my write node it’s set to don’t change format.
When I preview in finder it kinda plays - but doesn’t seem even - and doesn’t seem to loop.
I’ll check more later but not sure why that is or what that could be.