Author Topic: Script for GPU  (Read 228 times)

0 Members and 1 Guest are viewing this topic.

Offline Braian

Script for GPU
« on: January 13, 2021, 12:59:32 pm »
Does anyone know how to activate GPU render in python language?

Re: Script for GPU
« Reply #1 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)