RTX on/off switch

Forum for OctaneRender Lua scripting examples, discussion and support.
Post Reply
rrbarb
Licensed Customer
Posts: 88
Joined: Wed Feb 26, 2014 1:40 am

Is it possible to turn on/off rtx on a device through sccript?
If so what is switch?
./rrb
User avatar
jobigoud
OctaneRender Team
Posts: 247
Joined: Sat Aug 15, 2015 1:28 pm

You can get a NT_LOCAL_APP_PREFS node from octane.project.getPreferences().

Try the following:

Code: Select all

local useRTX = true

local nodePrefs = octane.project.getPreferences()
nodePrefs:setAttribute(octane.attributeId.A_USE_RTX_BACKEND, useRTX, true)
rrbarb
Licensed Customer
Posts: 88
Joined: Wed Feb 26, 2014 1:40 am

I will give this a go. ThankYou!
./rrb
Post Reply

Return to “Lua Scripting”