Write Images into a custom sub-directories

For the file number with six digits, you can enter this in the write node: $FileNumber06$

For removing the path from where the image was loaded from, you need this bit of JavaScript:

asset.setOutputSubFolder(null);

I need to make this an official API, or some sort of node, and more than just a forum post:

At this point, I think you can assume the API will be stable.

Edit: OK, I’ve made it an official part of the API: https://flyingmeat.com/retrobatch/docs-2.0/jsapi/assetapi/