python and settings

Forums: python and settings
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Re: python and settings

Postby aoktar » Tue Aug 30, 2016 5:48 pm

aoktar Tue Aug 30, 2016 5:48 pm
I've started a new topic with a good example
viewtopic.php?f=87&t=56039
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15969
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: python and settings

Postby wayart » Wed Jun 24, 2020 7:24 am

wayart Wed Jun 24, 2020 7:24 am
code is not working now.where can I found the 'myOctaneSettings' obj?
I found some script from the forum, but I can't change the value.

or How can I set it? so that when I open c4d, auto change setting to my preset.

Code: Select all

ID_OCTANE_LIVEPLUGIN = 1029499

def main():
    d=doc.GetDataInstance()
    bc=d.GetContainer(ID_OCTANE_LIVEPLUGIN)
    bc.SetData(3001, 0)    #this is not working

    print bc
    print "Octane version=",bc[c4d.SET_OCTANE_VERSION]
    print "Lock resolution=", bc[c4d.SET_LOCKRES]
    print "Check camera updates=", bc[c4d.SET_CHECK_CAMERA]
    print "Default environment color=", bc[c4d.SET_DEF_ENV_COLOR]
    print "DL Max samples=", bc[c4d.SET_DIRECT_MAXSAMPLES]
    print "Kernel tip=", bc[c4d.SET_KERNEL_TYPE]
    print "PT Max samples=", bc[c4d.SET_PATHTRACE_MAXSAMPLES]

    #bc[c4d.SET_KERNEL_TYPE]=1#not working

    c4d.EventAdd()

if __name__=='__main__':
    main()
    c4d.EventAdd()

wayart
Licensed Customer
Licensed Customer
 
Posts: 3
Joined: Sat Mar 26, 2016 12:24 pm
Previous

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 36 guests

Sat Apr 27, 2024 4:43 am [ UTC ]