Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

This page describes how to import a V-Ray proxy into Maya that was previously exported.

...

Alembic Proxy Parameters

...

 

Image Modified

 

 

Starting object – Allows to specify a starting path in the Alembic file; only objects below that path will be rendered. The path may start with ABC/ or it may be omitted.

...

Level multiplier – Determines the way point cloud levels are loaded. A value of 1.0 means that the level to load is determined exactly by the distance from the camera to the object. A value smaller than 1.0 means that the level will be of greater detail than required by distance. Values greater than 1.0 mean that the resolution of the level will be smaller than the one determined by distance. A value of 0.0 means that no point cloud level will be loaded and the original mesh will be rendered instead.

 

Material assignment overrides

...

When loading alembic files in a VRayProxy node, materials materials stored in .vrscene files can be assigned onto different objects from the alembic file. This requires a pair of a .vrscene file containing the materials and an XML file containing the "rules" for applying them to the objects in the alembic file.


Image Added


Material assignments file – Specifies the location of a .xml file that specifies the "rules" for material assignment based on the obejct path in the alembic file (only supported for alembic). The wildcards * are allowed in the xml file. The sample XML below assigns the VRayMtl1 material to all objects matching the patted pCube*, i.e. all objects whose name starts with pCube.


Code Block
languagexml
titleSample XML script
<materialAssignmentRules>
	<patternRule>
		<pattern>pCube*</pattern>
		<material>VRayMtl1@material</material>
	</patternRule>
</materialAssignmentRules>


For this feature to work, you need to specify the path to the .vrscene containing the materials (procedural textures or paths to bitmaps). This only works with post-translate python script. The following example script specifies the path to the .vrscene file and should be copied into Render Settings > Common > MEL / Python callbacks > Post translate python script.


Code Block
languagepy
titlePost-translate Python script
from vray.utils import * 

appendSceneContent("C:/mtlAssignments/materials.vrscene")
Expand
titleSample scene files

Donwload a sample scene file from here

You will need to set the correct path to the xml in the proxy node and then set the correct path to the .vrscene file from Render Settings > Common > MEL / Python callbacks > Post translate python script. 

Note that the geometry, the settings and the "node" plugins from the vrscene are deleted, because using appendSceneContent will add all the content from the vrscene file, including the geometry, which is not needed in this case.

 

Note

The material assignment overrides is still a highly experimental feature and can change at any point!

 

VRayMesh File Info

...

 

 

 

This rollout provides information on the loaded VRayMesh including:

...