Page 1 of 1

Octane render preferences via maxscript

Posted: Wed Jun 09, 2021 3:52 pm
by HHbomb
Hi,
Is there a way to change some "Octane Preferences" via Maxscript ?
And if yes, how to have the list ?
Thanks

Re: Octane render preferences via maxscript

Posted: Mon Jun 14, 2021 7:26 am
by HHbomb
the answer is no.....

Re: Octane render preferences via maxscript

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

show renderers.current

Re: Octane render preferences via maxscript

Posted: Thu Nov 04, 2021 8:27 am
by HHbomb
@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.

Re: Octane render preferences via maxscript

Posted: Sun Nov 07, 2021 10:11 pm
by neonZorglub
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

Re: Octane render preferences via maxscript

Posted: Mon Nov 08, 2021 8:56 am
by HHbomb
Thank you ! :-) It is all I needed !!