ScriptInterface:FileRender(path)

Version added: before 9.5

Render current frame

ArgumentTypeDescriptionDefaultVer
pathchar< 9.5

Return type: none

When called with a valid path that includes a filename and extension that is recognised as a "simple" image type (i.e. .png, .jpg, .bmp) this function will create an image file with the correct attributes (e.g. transparency for .png) in the nominated directory as well as saving an image file in the render cache.

Otherwise, the function will open the render window as though the File / Preview command had been invoked.
String "FileRender" is found in the following scripts:

Current Frame to PNG (by Stan)

Top Layers to PNGs (by Stan)

See all...