RenderImage task

This task call the Blender command line in order to render a scene.

task renderImage(type: com.eowise.blender.render.RenderImage) {
    scene 'Hero'
    from '3d/actors.blend'
    into 'assets/actors/hero.png'
}

Methods

scene(String sceneName)
required

Set the scene you want to render.

from(Object file)
required

Set the .blend file that contains the scene you want to render. The given file is evaluated as per Gradle Project.file().

into(Object file)
required

Set the file where the rendered asset will be writen. Just like the from method, the given file is evaluated as per Gradle Project.file().