Octane render preferences via maxscript

Forums: Octane render preferences via maxscript
3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here viewforum.php?f=18

Octane render preferences via maxscript

Postby HHbomb » Wed Jun 09, 2021 3:52 pm

HHbomb Wed Jun 09, 2021 3:52 pm
Hi,
Is there a way to change some "Octane Preferences" via Maxscript ?
And if yes, how to have the list ?
Thanks
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
HHbomb
Licensed Customer
Licensed Customer
 
Posts: 1307
Joined: Wed Jun 30, 2010 8:45 pm

Re: Octane render preferences via maxscript

Postby HHbomb » Mon Jun 14, 2021 7:26 am

HHbomb Mon Jun 14, 2021 7:26 am
the answer is no.....
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
HHbomb
Licensed Customer
Licensed Customer
 
Posts: 1307
Joined: Wed Jun 30, 2010 8:45 pm

Re: Octane render preferences via maxscript

Postby Vector6 » Wed Nov 03, 2021 5:03 am

Vector6 Wed Nov 03, 2021 5:03 am
Is this what you're looking for?

show renderers.current
Vector6
Licensed Customer
Licensed Customer
 
Posts: 10
Joined: Fri Jan 20, 2017 6:28 am

Re: Octane render preferences via maxscript

Postby HHbomb » Thu Nov 04, 2021 8:27 am

HHbomb Thu Nov 04, 2021 8:27 am
@Vector6
Hi, thanks but it is not what I'm looking for :-)
I want to acces to octane pref settings. For exemple, when I want to switch conversion on the fly, I would like to know if it is active or no, and I don't want to go to octane big pref settings.
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
HHbomb
Licensed Customer
Licensed Customer
 
Posts: 1307
Joined: Wed Jun 30, 2010 8:45 pm

Re: Octane render preferences via maxscript

Postby neonZorglub » Sun Nov 07, 2021 10:11 pm

neonZorglub Sun Nov 07, 2021 10:11 pm
HHbomb wrote:@Vector6
Hi, thanks but it is not what I'm looking for :-)
I want to acces to octane pref settings. For exemple, when I want to switch conversion on the fly, I would like to know if it is active or no, and I don't want to go to octane big pref settings.


Hi HHbomb,

There are several functions to get and set those settings:
see viewtopic.php?f=27&t=62173

The OCMGetUserConfigValueXXXX and OCMSetUserConfigValueXXXX functions allow access to the Octane Global preferences variables.
(The variable names can seen in 'octane3dsMaxConfig.cfg', that can be located by 'Explore User Settings folder' in the Tools menu of the Octane Global preferences.)

example: OctaneMaxFPI.OCMSetUserConfigValueInt "EnableOnTheFlyMaterialConversion" true

Sorry, you currently have to look into this cfg file to get the variable names; I'll add some functions to get those names from maxscript too..

Thanks
neonZorglub
OctaneRender Team
OctaneRender Team
 
Posts: 899
Joined: Sun Jul 31, 2016 10:08 pm

Re: Octane render preferences via maxscript

Postby HHbomb » Mon Nov 08, 2021 8:56 am

HHbomb Mon Nov 08, 2021 8:56 am
Thank you ! :-) It is all I needed !!
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
HHbomb
Licensed Customer
Licensed Customer
 
Posts: 1307
Joined: Wed Jun 30, 2010 8:45 pm

Return to Autodesk 3Ds Max


Who is online

Users browsing this forum: No registered users and 17 guests

Thu Apr 25, 2024 11:50 am [ UTC ]