Script for GPU

Started by Braian, January 13, 2021, 12:59:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Braian

Does anyone know how to activate GPU render in python language?

AutomaticDesign

https://media.keyshot.com/scripting/doc/9.0/lux.html

setRenderEngine(...)
Set render engine to use for the scene.
engine = Type of render engine to use: lux.RENDER_ENGINE_PRODUCT, lux.RENDER_ENGINE_INTERIOR, lux.RENDER_ENGINE_PRODUCT_GPU, or lux.RENDER_ENGINE_INTERIOR_GPU. *

so it is:
lux.setRenderEngine(lux.RENDER_ENGINE_PRODUCT_GPU)