Import Vray Proxy Via Mel or Python

As subject above, struggling to find much info on this,
I’m looking for a simple script to create the vray proxy loader then apply the meshes path, abc or vrmesh then choose the starting point of the hierarchy for abc,
Cheers

Hello!
We use the command “vrayCreateProxy” to export/import proxies. It could be executed both in MEL and Python.
You could either go to Chaos Docs
or run the following python script for available options:
maya.cmds.vrayCreateProxy(help=True)
And this is a simple example to import a proxy:
maya.cmds.vrayCreateProxy(node='meshName', existing=True, dir='D:/maya/projects/proxies/pCone1.vrmesh', createProxyNode=True)