==== Octane useful scripts ====

Forums: ==== Octane useful scripts ====
Sub forum for help and tutorials.

Moderator: aoktar

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

Postby HSchoenberger » Tue Apr 09, 2024 8:00 am

HSchoenberger Tue Apr 09, 2024 8:00 am
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.
HSchoenberger
Licensed Customer
Licensed Customer
 
Posts: 5
Joined: Tue Jan 23, 2024 10:16 am

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

Postby aoktar » Tue Apr 09, 2024 1:37 pm

aoktar Tue Apr 09, 2024 1:37 pm
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
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: 15971
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

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

Postby HSchoenberger » Tue Apr 16, 2024 1:27 pm

HSchoenberger Tue Apr 16, 2024 1:27 pm
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])
HSchoenberger
Licensed Customer
Licensed Customer
 
Posts: 5
Joined: Tue Jan 23, 2024 10:16 am

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

Postby aoktar » Tue Apr 16, 2024 6:53 pm

aoktar Tue Apr 16, 2024 6:53 pm
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])
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: 15971
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

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

Postby HSchoenberger » Mon Apr 22, 2024 1:25 pm

HSchoenberger Mon Apr 22, 2024 1:25 pm
Thanks, that works
HSchoenberger
Licensed Customer
Licensed Customer
 
Posts: 5
Joined: Tue Jan 23, 2024 10:16 am
Previous

Return to Help / Tutorials


Who is online

Users browsing this forum: No registered users and 1 guest

Tue Apr 30, 2024 4:34 pm [ UTC ]