Page 7 of 7

Re: ==== Octane useful scripts ====

PostPosted: Tue Apr 09, 2024 8:00 am
by HSchoenberger
aoktar wrote:I don't understand your request. You have two different point to read numbers, current plugin version or saved version number in to scene. What do you want to get exactly if scene version number overwritten?


>You have two different point to read numbers
There is only one.
If you take a look at the script, it retrieves the version from the scene:
bc = doc[ID_OCTANE_LIVEPLUGIN]
print ("Octane version=",bc[c4d.SET_OCTANE_VERSION])

And I need the version number of the plugin currently loaded in C4D.

Re: ==== Octane useful scripts ====

PostPosted: Tue Apr 09, 2024 1:37 pm
by aoktar
HSchoenberger wrote:
aoktar wrote:I don't understand your request. You have two different point to read numbers, current plugin version or saved version number in to scene. What do you want to get exactly if scene version number overwritten?


>You have two different point to read numbers
There is only one.
If you take a look at the script, it retrieves the version from the scene:
bc = doc[ID_OCTANE_LIVEPLUGIN]
print ("Octane version=",bc[c4d.SET_OCTANE_VERSION])

And I need the version number of the plugin currently loaded in C4D.


It's another info published a few page back
viewtopic.php?f=87&t=56039&start=30#p422511

Re: ==== Octane useful scripts ====

PostPosted: Tue Apr 16, 2024 1:27 pm
by HSchoenberger
aoktar wrote:It's another info published a few page back
viewtopic.php?f=87&t=56039&start=30#p422511


If I follow your link, then I see the same script you already mentioned.
It does not work.
It reads the version from the document.

You are referring to this script, right?


Code: Select all
ID_OCTANE_LIVEPLUGIN = 1029499
def main():
    bc = doc[ID_OCTANE_LIVEPLUGIN]
    data = c4d.plugins.GetWorldPluginData(ID_OCTANE_LIVEPLUGIN)
    print("data",data[13])  #OPENGL_SAMPLES
    print("data",data[85])  #PREFS_LOCALDB_PATH
    print("data",data[70])  #PREFS_NG_CAT_MAT_COLOR
   
    octPrefs = data[131]
    print("OCIO_USEOTHERCFG:",octPrefs[5])  #OCIO_USEOTHERCFG
    print("OCIO_INTERM_GUESS:",octPrefs[7])  #OCIO_INTERM_GUESS
    print("OCIO_CFG_FILE:",octPrefs[1])  #OCIO_CFG_FILE
   
   
    print ("Octane version=",bc[30])     
    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 ("Kernel tip=", bc[c4d.SET_KERNEL_TYPE])
    print ("DL Max samples=", bc[c4d.SET_DIRECT_MAXSAMPLES])
    print ("PT Max samples=", bc[c4d.SET_PATHTRACE_MAXSAMPLES])

Re: ==== Octane useful scripts ====

PostPosted: Tue Apr 16, 2024 6:53 pm
by aoktar
HSchoenberger wrote:
aoktar wrote:It's another info published a few page back
viewtopic.php?f=87&t=56039&start=30#p422511


If I follow your link, then I see the same script you already mentioned.
It does not work.
It reads the version from the document.

You are referring to this script, right?
Sorry try this

Code: Select all
   
data = c4d.plugins.GetWorldPluginData(1031195)
print("version",data[5001])
print("number",data[5000])

Re: ==== Octane useful scripts ====

PostPosted: Mon Apr 22, 2024 1:25 pm
by HSchoenberger
Thanks, that works