read vray related data via python

On 06/10/2015 at 10:57, xxxxxxxx wrote:

i try to figure out where vray storage information like pass order or other things. any ideas how to gain access to it?

this code list all vray related plugins and try to print all stored informations:

  
import c4d
from c4d import documents 
from c4d import plugins
  
def main() :
    
    
    doc = c4d.documents.GetActiveDocument()
    
    print "#" *64
    
    for i in range (0,2000000) :
        
        plug = c4d.plugins.FindPlugin(i)
        if plug != None:
            
            if "V-Ray" in plug.GetName() or  "Vray" in plug.GetName() :
                
                
                w = c4d.plugins.ReadRegInfo(i,3500)
                x = c4d.plugins.GetWorldPluginData(i)
                y = c4d.plugins.GetToolData(doc,i)
                z = c4d.plugins.ReadPluginInfo(i,3500)
                
                print i,plug.GetName()
                print i,w
                print i,x
                print i,y
                print i,z
                
                print "#" * 16
  
if __name__=='__main__':
    main()
  
  

On 06/10/2015 at 22:35, xxxxxxxx wrote:

i guess you need to be a bit more specific what data exactly you want to get.
You mean the stuff from the Multipass Manager? these seem to be saved under a separate listhead (1028267 mpnode)

On 07/10/2015 at 00:45, xxxxxxxx wrote:

well

to be honest - i didn't know the listhead thing until now.

but i have no clue how to use it correctly ;)

On 07/10/2015 at 01:04, xxxxxxxx wrote:

i don't know if it is possible from python, but with c++ you would use the GetBranchInfo of the document. then you can browse through the subobjects of this listhead

On 07/10/2015 at 02:18, xxxxxxxx wrote:

Hi,

I'm sorry, but we can't provide support for 3rd party plugins (we simply lack the information).
I think your best chance is to ask LAUBlab directly.

On 07/10/2015 at 02:33, xxxxxxxx wrote:

Sure! But Stefan told me that Remo are on vacation at the moment so he could't give me the information i desire ;)

so i deside to ask it here if maye someone got an idea - if remo is back from his vacation i'll post the answer also here to "close" this thread if you like