Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    read vray related data via python

    Scheduled Pinned Locked Moved PYTHON Development
    6 Posts 0 Posters 472 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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()
        
        
      
      
      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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)

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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 😉

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post