OOC setting for commandline

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
SUPERBIEN
Licensed Customer
Posts: 3
Joined: Thu Sep 04, 2014 4:05 pm

Hi there,

I have a render that needs Out of Core features to be able to render. So far I can render with the C4D render queue if I set the OOC to 10G before launching the render.

But when I try to render with commandline.exe, the Octane log windows pops up : "Out-of-core memory limits exceeded"

I wonder where the OOC setting specifying the amount of RAM is stored.

I tried to copy/paste prefs folder from AppData/Roaming/MAXON/Maxon Cinema 4D 2023_BCDB4759 to Maxon Cinema 4D 2023_BCDB4759_x with no luck.

Any help will be appreciated

Windows 10 22H2
C4D 2023.2.0
Octane 2022.1.1-R3 (tried 2023.1.2-R6, same result)
"C:\Program Files\Maxon Cinema 4D 2023\Commandline.exe" -render C:\path\to\scene.c4d -frame 0 1 0
SUPERBIEN
Licensed Customer
Posts: 3
Joined: Thu Sep 04, 2014 4:05 pm

Hello,

I'm feel a bit alone with this problem but I don't want to give up.

I tried to modify OOC settings with a script based on this aoktar post and another one

So far I found indexes I was looking to update but when I try to push those values with c4d.plugins.SetWorldPluginData() the oct.dat file does not update (as it happens when you modify OOC parameter with the gui).

I feel like I need to use another function to achieve this.

Any advice would be greatly appreciated

Code: Select all

import c4d
from c4d import gui

ID_OCTANE_LIVEPLUGIN = 1029499

def main():
    #get octane BaseContainer
    data = c4d.plugins.GetWorldPluginData(ID_OCTANE_LIVEPLUGIN)

    #print values for the indexes we are trying to modify
    print("is OOC enabled ? (1 = yes, 0 = no ) => ",data[51])
    print("RAM usage limit =>",data[52])
    print("GPU head room =>",data[53])

    #modify values of OOC settings 
    data[51] = 1
    data[52] = 25
    data[53] = 1024

    #store/merge the updated container to C4D pref
    if not c4d.plugins.SetWorldPluginData(ID_OCTANE_LIVEPLUGIN, data, add=True):
        raise RuntimeError(f"Could not store plugin data under id: {ID_OCTANE_LIVEPLUGIN}.")

    #test if the modifications are still there
    test = c4d.plugins.GetWorldPluginData(ID_OCTANE_LIVEPLUGIN) 
    print (test[51], test[52], test[53])
    #yes there are but when checking in the GUI it's still the old values. oct.dat does not update

if __name__=='__main__':
    main()
User avatar
bepeg4d
Octane Guru
Posts: 10326
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi,
try to copy "oct.dat" from:
`C:\Users\USERNAME\AppData\Roaming\MAXON\Cinema4D-RXX_RANDOM_CODE\prefs\oct.dat` to:
`C:\Users\USERNAME\AppData\Roaming\MAXON\Cinema4D-RXX_RANDOM_CODE_x\prefs\oct.dat` directory.

ciao,
Beppe
Post Reply

Return to “Maxon Cinema 4D”