|
|
|
|
|
Syntax: ExportVRayMesh(saveIn, fileName, exportType, bakeTransform, groupType, overwrite, animOn, animType, startFrame, endFrame, velocityOn, velocityIntervalStart, velocityIntervalEnd, shouldCreateProxy, previewFaces) |
---|
Options | Description |
---|---|
saveIn | This is the directory where the mesh file(s) will be created (tokens are supported). Default value: current project's location |
fileName | Used only when exporting all selected geometry objects into a single file (i.e. when exportType=0). This option specifies the name of the output .vrmesh file. You don't need to specify a path - the folder from saveIn will be used. |
exportType | Determines whether the selected meshes should be exported to separate files or all of them into 1 file. 0 - exports all selected objects in a single .vrmesh file. This option also stores the transformations of the selected objects; 1 - exports each selected object in a separate .vrmesh file. The name of each file is derived from the name of the corresponding Softimage node. The transformation of an object is not included in its mesh file unless specified via bakeTransform; Default value: 0 |
bakeTransform | Specifies whether objects transformations should be written into the vrmesh file(s) Default value: true |
groupType | Specifies how faces will be grouped according to the materials IDs. 0 - the selected faces that have the same material will be assigned with the same Material ID; 1- groups faces according to mapping to existing clusters. When the faces in the geometry have been previously divided into clusters, this options assigns the same material ID to the faces in each cluster regardless of the material assigned to individual faces; Default value: 0. |
overwrite | When turned on - will automatically overwrite any existing .vrmesh files. Default value: true |
animOn | Sprecifies whether animation be exported as well. Default value: false |
animType | Determines the animation interval for export. 0 - exports all the frames from the animation timeline; 1 - manually specify the frame range for the animation export by using the startFrame and endFrame parameters; Default value: 0 |
startFrame | Specifies the start animation frame when using explicit range (animType=1). Default value: 0 |
endFrame | Specifies the end animation frame when using explicit range (animType=1). Default value: 10 |
velocityOn | If specified(animOn=true and velocityOn=true), vertex velocity is also exported. This enables motion blur and smooth interpolation of the resulting animated proxies. The time samples within a frame for computing the velocity are specified with the velocityIntervalStart and velocityIntervalEnd options. Default value: true |
velocityIntervalStart | A value between 0.0 and 1.0 with the time position within a frame for the initial vertex positions. Default value: 0.0 |
velocityIntervalEnd | A value between 0.0 and 1.0 with the time position within a frame for the ending vertex positions. Default value: 0.05 |
shouldCreateProxy | When this is turned on - after successful export, the original geometry objects will be replaced with proxy/proxies. Default value: true |
previewFaces | Specifies the maximum number of faces that will be used to show a preview of the proxy in the viewport. Default value: 10000 |
|
|
|
|