Versions Compared

Key

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

...

Div
stylepadding-left: 5px;padding-right: 5px;padding-bottom: 10px;
alignleft
classdashboard
Textboxcard
PageToIncludeSystem Requirements
CardPageLinkMesh Attributes

Mesh Attributes


Affects polygonal objects, mostly as render-time effects rather than affecting the actual geometry. Click here to find out more.
Textboxcard
PageToIncludeSystem Requirements
CardPageLinkNURBS Surface Attributes

NURBS Surface Attributes

 

Control the conversion of a NURBS object to a mesh at render time to increase rendering speed or conserve memory. Click here to find out more.

Textboxcard
PageToIncludeInstallation
CardPageLinkParticle Attributes

Particle Attributes

 

Adds parameters for Maya particle systems. Click here to find out more.

Textboxcard
PageToIncludeGetting Started
CardPageLinkTransform Attributes

Transform Attributes

 

Provides a few extra parameters for an object, such as excluding it from rendering. Click here to find out more.

 

 

Lights and Cameras

...

 

Div
stylepadding-left: 5px;padding-right: 5px;padding-bottom: 10px;
alignleft
classdashboard
Textboxcard
PageToIncludeSystem Requirements
CardPageLinkCamera Attributes

Camera Attributes

 

Can turn the virtual camera into many types of real-world cameras, and provides familiar camera controls such as shutter speed. Click here to find out more.
Textboxcard
PageToIncludeSystem Requirements
CardPageLinkLight Attributes

Light Attributes

 

Gives control of light parameters that are ordinarily global on a per-light basis. Click here to find out more.

 

Materials and Shading

...

 

Div
stylepadding-left: 5px;padding-right: 5px;padding-bottom: 10px;
alignleft
classdashboard
Textboxcard
PageToIncludeSystem Requirements
CardPageLinkShading Group Attributes

Shading Group Attributes

 

Provides the ability to override material settings. Click here to find out more.
Textboxcard
PageToIncludeSystem Requirements
CardPageLinkTexture Attributes

Texture Attributes

 

Can be added to various texture-related nodes to control export or the textures themselves. Click here to find out more.

Textboxcard
PageToIncludeInstallation
CardPageLinkMaterial Attributes

Material Attributes

 

Provides additional controls to both Maya and V-Ray materials. Click here to find out more.

...

Div
stylepadding-left: 5px;padding-right: 5px;padding-bottom: 10px;
alignleft
classdashboard
Textboxcard
PageToIncludeSystem Requirements
CardPageLinkFluid Attributes

Fluid Attributes

 

Adds extra control for Maya fluids. Click here to find out more.
Textboxcard
PageToIncludeSystem Requirements
CardPageLinkHair Attributes

Hair Attributes

 

Provides parameters to optimize Maya hair for rendering with V-Ray. Click here to find out more.

Textboxcard
PageToIncludeInstallation
CardPageLinkBifrost Attributes

Bifrost Attributes

 

Adds controls for Bifrost simulations. Click here to find out more.

Textboxcard
PageToIncludeGetting Started
CardPageLinkPlacement Attributes

Placement Attributes

 

Adds controls to 2D Placement and 3D placement nodes. Click here to find out more.

Textboxcard
PageToIncludeGetting Started
CardPageLinkSurface Luminance Attributes

Surface Luminance

 

Attributes adds controls to Maya's Surface Luminance node. Click here to find out more.

 

Custom Attributes From Text Files

...

UI Text Box
typewarning

Custom Attributes from text files are available only with V-Ray 6 for Maya, Beta.

The extra prefix attributes are a set of three text (.txt) files containing key-value definitions, which can be used to add dynamic attributes to Maya, V-Ray or 3rd party nodes. The default set of files, which are shipped with the installation are located inside the scripts folder of the V-Ray for Maya installation. It is possible to supply a custom set of attribute files. V-Ray will use the paths, specified by the VRAY_FOR_MAYA_SHADERS environment variable to search for such custom files. The default attribute files can be used as an example but should not be modified.

The dynamic attributes appear in the Attributes menu of the Attribute Editor and can be added using this menu or by calling the available command: "vray addAttributesFromGroup".

The custom attribute files should have the following names:

# <prefix>_attributes.txt

Contains all dynamic attribute definitions. Each definition includes the attribute's label, its type, its group, its default value, its range of values, as well as other keys. One or more attributes belong to a group, which can then be assigned to a node. The <prefix> must be the same as all attributes' and groups' prefixes.

# <prefix>_attributeGroups.txt

Contains all attribute group definitions. Each definition includes its label and a list of existing attributes from <prefix>_attributes.txt. An attribute key format is "attribute_n", where n must be a consecutive number, starting from 0. The attribute groups can then be assigned to a node. The <prefix> must be the same as all attributes' and groups' prefixes.

# <prefix>_attributeNodes.txt

Contains node definitions, which link existing nodes to attribute groups. Each node definition is a list of existing groups from <prefix>_attributeGroups.txt. A group key format is "group_n", where n must be a consecutive number, starting from 0.

UI Text Box
typenote

The word "vray" should not be used as a prefix, as it is a reserved word.

Keys defining attributes in <prefix>_attributes.txt

...

# label

The label of the attribute, which is shown in the UI, next to the attribute control.

# state

It can be either "optional" or "required". Attributes with specific states can be fetched with "vray getRequiredAttrs" and "vray getOptionalAttrs" commands.

# group

The name of the group as defined in <prefix>_attributeGroups.txt, to which the attribute belongs.

# subtype

The subtype of the attribute. Every decl type supports specific subtypes. For details see # decl.

- button: A button control.
- switch: A checkbox control.
- selector: An option menu control.
- slider: A slider control.
- materialConnection: A control for connecting materials.
- textureConnection: A control for connecting textures.
- file: A file text control with a browse button.
- buttonWide_cmd: A button, which executes a mel function. The function name should be assigned to the "default" key.
- text_label: A text label.
- separator: A separator with a text, specified by the "label" key.
- ctexture: Adds a shader connection button.
- cvector: Makes the attribute children x, y, z, instead of r, g, b.

# decl

The type of the attribute. It can have one of the following values:

- float - A floating point number. Supports button, switch, selector, textureConnection and slider subtypes. Defaults to slider.

- int - An integer number. Supports button, switch, selector, textureConnection and slider subtypes. Defaults to slider.

- bool - A boolean. Supports button, switch, selector, textureConnection and slider subtypes. Defaults to slider.

- distance - A floating point number. Supports button, switch, selector, textureConnection and slider subtypes. Defaults to slider.

- color - A color. Supports ctexture and cvector subtypes.

- float[3] - A triple float. Supports cvector, materialConnection and textureConnection sybtypes.

- string - A string. Supports selector, file, buttonWide_cmd, text_label and separator subtypes.

# range_min

The minimum value an attribute can have.

# range_max

The maximum value an attribute can have.

# rangesoft_min

A soft minimum limiting only the control UI.

# rangesoft_max

A soft maximum limiting only the control UI.

# range_step

The minimum value with which an attribute value can be changed.

# range_(n)

Used with selector subtypes, where n is a consecutive number starting from 0 to define a list of fixed possible values. The even n values (range_0, range_2, etc.) describe the item labels, while the odd ones describe the item values.

# default

The default value of the attribute.

# hidemap

When set to 1, the map button of the attribute control will not be shown.

 

Examples

...

Example of an attribute definition in an example someprefix_attributes.txt file:

Code Block
Attribute someprefixCameraDistance {
  label = Distance
  state = optional
  group = someprefix_camera
  decl = float
  subtype = slider
  range_min = 0.0
  range_max = 1000.0
  rangesoft_min = 1.0
  rangesoft_max = 100.0
  range_step = 0.01
  default = 1.0
  hidemap = 1
}

 

Example of an attribute group definition in an example someprefix_attributeGroups.txt file:

Code Block
AttributeGroup someprefix_camera {
  label = Camera
  attribute_0 = someprefixCameraDistance
}

 

Example of a definition, which links a node to a list of groups in an example someprefix_attributeNodes.txt file:

Code Block
Node VRayMtl {
  group_0 = someprefix_camera
}