Forums: RTX on/off switch
Forum for OctaneRender Lua scripting examples, discussion and support.
by 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
-
- Posts: 88
- Joined: Wed Feb 26, 2014 1:40 am
by 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)
-
jobigoud
- OctaneRender Team
-
- Posts: 230
- Joined: Sat Aug 15, 2015 1:28 pm
by 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
-
- 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 22 guests