Announcement

Collapse
No announcement yet.

Get Access to V-Ray Proxy Exporter via Python

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get Access to V-Ray Proxy Exporter via Python

    Dear Chaosgroup,

    could you pls share the commands and the plugin-id of the new V-Ray 5 Proxy Exporter?
    I want to write a script via python but I dont know how to access or get access to the V-Ray Exporter and their settings.

    Thank you in advance!
    PdZ

  • #2
    Hello,

    Can you give us more details what script you are trying to write?

    The proxy exporter is implemented as SceneSaver Cinema4D plugin. Its ID is 1055794. You can get a list of all available SceneSaver plugins using a script like this:
    Code:
    for plugin in c4d.plugins.FilterPluginList(c4d.PLUGINTYPE_SCENESAVER,True):
      print (plugin.GetID(), " = ", plugin.GetName())
    To get the IDs of specific parameter - you can just drag and drop the parameter name in the script manager.

    An example how to use a scene saver plugin in python can be found in the Cinema4D SDK samples here: https://github.com/PluginCafe/cinema...portAlembic.py

    I hope this helps.


    Comment


    • #3
      Hi ivan,

      thx for the reply! That helped a bit. But what I wanna get access to is not easily be achieved via drag and drop. Thats not possible in this scenario. I need access to the V-Ray Proxy Converter Settings like in the Github-Example regarding Alembic:
      # Change Alembic export settings
      abcExport[c4d.ABCEXPORT_SELECTION_ONLY] = True
      abcExport[c4d.ABCEXPORT_PARTICLES] = True
      abcExport[c4d.ABCEXPORT_PARTICLE_GEOMETRY] = True
      but in my case I need the parameters for V-Ray Export like:

      V-Ray_Proxy_Export[c4d.VRayexport_ADDPROXYTOSCENE] = True;

      those I do need to know but cant extract/access them easily or I dont know how... Could you pls help me there?

      Thx in advance!
      PdZ
      Last edited by PdZ; 01-06-2021, 02:46 AM.

      Comment

      Working...
      X