Scripting with Proxy exports with 'Replace Object with Proxy'

I’m trying to automate converting geometry to .vrmesh objects with Python (Rhino 7 - Iron Python).

Is it possible to script the ‘Replace Object with Proxy’ option seen in the GUI? It’s really helpful option to have, as reimporting vrmesh files means you lose their materials.

Hi,
The vrayProxyExport command is the code behind the UI. You just need to invoke it in script mode from your script and pass parameters. They are exactly the same as in the UI, including “Replace Object with Proxy”