Page History
...
The .vrmesh files and proxy objects can be created through the vrayCreateProxy command. Using the command with different flags allows you to export geometry to proxy files and load files to V-Ray Proxy objects.
UI Text Box | ||
---|---|---|
| ||
You can use the vrayCreateProxy command with both MEL and Python. For the purpose of the documentation, the examples below are written in MEL. |
UI Text Box | ||
---|---|---|
| ||
For a list of all available arguments, run the command with the -help flag in the Maya Script Editor: vrayCreateProxy -help. |
...
UI Text Box | ||
---|---|---|
| ||
Note that $filename has to include the correct extension of the file, that is .abc or .vrmesh. |
Import Mesh Example
.vrmesh example:
Code Block |
---|
vrayCreateProxy -node $nodename -existing -dir $path.vrmesh -createProxyNode |
...
alembic example:
Code Block |
---|
vrayCreateProxy -node $nodename -existing -dir $path.abc -createProxyNode |
...
This command creates a proxy node and points it to an existing file (.vrmesh or .abc). Please note that "$path.vrmesh/abc" is the full path of the file. $nodename is the name of the node in the Maya scene.
Import/Export Material Rules Example
...
Code Block |
---|
vrayImportProxyRules "pSphere_vrayproxy" "D:/Maya/Proxy/test.xml"; |
...
Export material rules example:
Code Block |
---|
vrayExportProxyRules "pSphere_vrayproxy" "D:/Maya/Proxy/test.xml"; |
...
These commands are equivalent to the existing Import/Export material rules button (
), but allow for scripting.