HHbomb wrote:Hi NZ!
OctaneMaxFPI.OCMGetUserConfigValueInt "EnableOnTheFlyMaterialConversion" give same value ( 0 ) regardless of the state of the checkbox... how can we have the state ? Thanks
Hi HHbomb,
As this is a check box, it is a Bool, not an Int, so you need to use the functions:
to read:
OctaneMaxFPI.OCMGetUserConfigValueBool "EnableOnTheFlyMaterialConversion"
(will return true or false)
and to set the value:
OctaneMaxFPI.OCMSetUserConfigValueBool "EnableOnTheFlyMaterialConversion" true
or
OctaneMaxFPI.OCMSetUserConfigValueBool "EnableOnTheFlyMaterialConversion" false
Alternatively, you can set the value as a string, this will be converted to the correct boolean type:
OctaneMaxFPI.OCMSetUserConfigValue "EnableOnTheFlyMaterialConversion" "1"
OctaneMaxFPI.OCMSetUserConfigValue "EnableOnTheFlyMaterialConversion" "0"
OctaneMaxFPI.OCMSetUserConfigValue "EnableOnTheFlyMaterialConversion" "true"
OctaneMaxFPI.OCMSetUserConfigValue "EnableOnTheFlyMaterialConversion" "false"