KeyShot Forum

Technical discussions => Extending KeyShot => Scripting => Topic started by: Braian on January 13, 2021, 12:59:32 PM

Title: Script for GPU
Post by: Braian on January 13, 2021, 12:59:32 PM
Does anyone know how to activate GPU render in python language?
Title: Re: Script for GPU
Post by: AutomaticDesign on February 22, 2021, 02:56:23 AM
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)