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 http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
HHbomb
Licensed Customer
Posts: 1377
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

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
Posts: 1377
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

the answer is no.....
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
Vector6
Licensed Customer
Posts: 10
Joined: Fri Jan 20, 2017 6:28 am

Is this what you're looking for?

show renderers.current
HHbomb
Licensed Customer
Posts: 1377
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

@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 |
neonZorglub
OctaneRender Team
Posts: 1018
Joined: Sun Jul 31, 2016 10:08 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
HHbomb
Licensed Customer
Posts: 1377
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

Thank you ! :-) It is all I needed !!
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
Post Reply

Return to “Autodesk 3Ds Max”