RTX on/off switch

Forums: RTX on/off switch
Forum for OctaneRender Lua scripting examples, discussion and support.

RTX on/off switch

Postby rrbarb » Mon Feb 10, 2020 8:09 pm

rrbarb Mon Feb 10, 2020 8:09 pm
Is it possible to turn on/off rtx on a device through sccript?
If so what is switch?
./rrb
rrbarb
Licensed Customer
Licensed Customer
 
Posts: 88
Joined: Wed Feb 26, 2014 1:40 am

Re: RTX on/off switch

Postby jobigoud » Wed Feb 26, 2020 2:55 pm

jobigoud Wed Feb 26, 2020 2:55 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)
User avatar
jobigoud
OctaneRender Team
OctaneRender Team
 
Posts: 230
Joined: Sat Aug 15, 2015 1:28 pm

Re: RTX on/off switch

Postby rrbarb » Sat Mar 07, 2020 1:07 pm

rrbarb Sat Mar 07, 2020 1:07 pm
I will give this a go. ThankYou!
./rrb
rrbarb
Licensed Customer
Licensed Customer
 
Posts: 88
Joined: Wed Feb 26, 2014 1:40 am

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 4 guests

Thu Mar 28, 2024 4:21 pm [ UTC ]