MAXScript Language Reference > 3ds Max Objects > RenderEffect : MAXWrapper > Render Effect Types > Lens Effects >

# Lens_Effects - Ray

    Ray_Element - superclass: ReferenceTarget; super-superclass:MAXWrapper - classID: #(308025732, 2043903300)

Value > MAXWrapper > RenderEffect > LensEffect > Ray_Element

Constructor

    le.addRay <Lens_Effects>

Aliases

    Ray_Element 'Ray Element'

Properties

    <ray>.elementName String default: "Ray" -- alias: Name

    <ray>.on Boolean default: true

    <ray>.size Float default: 300.0 -- animatable

    <ray>.intensity Float default: 10.0 -- animatable

    <ray>.number Integer default: 100 -- animatable; alias: Quantity

    <ray>.angle Float default: 0.0 -- animatable

    <ray>.sharpness Float default: 8.0 -- animatable

    <ray>.objectsHide Boolean default: false

    <ray>.occlusion Float default: 100.0 -- animatable

    <ray>.squeeze Boolean default: false

    <ray>.colorSource Float default: 100.0 -- animatable; alias: Source_Color

    <ray>.centerColor Color default: (color 255 255 255) -- animatable; alias: Center_Color

    <ray>.edgeColor Color default: (color 255 0 0) -- animatable; alias: Edge_Color

    <ray>.radialMtl TextureMap default: undefined -- alias: Radial_Material

    <ray>.useRadialMtl Boolean default: false -- alias: Apply_Radial_Color_Map

    <ray>.radial_falloff SubAnim

    <ray>.radialMap TextureMap default: undefined -- alias: Radial_Falloff_Map

    <ray>.useRadialMap Boolean default: false -- alias: Apply_Radial_Falloff_Map

    <ray>.circularColorMix Float default: 0.0 -- animatable; alias: Circular_Color_Mix

    <ray>.quadrant1Color Color default: (color 255 0 0) -- animatable; alias: Quadrant_1_Color

    <ray>.quadrant2Color Color default: (color 255 0 0) -- animatable; alias: Quadrant_2_Color

    <ray>.quadrant3Color Color default: (color 255 0 0) -- animatable; alias: Quadrant_3_Color

    <ray>.quadrant4Color Color default: (color 255 0 0) -- animatable; alias: Quadrant_4_Color

    <ray>.circularMtl TextureMap default: undefined

Circular_Material

    <ray>.useCircularMtl Boolean default: false -- alias: Apply_Circular_Color_Map

    <ray>.circular_falloff SubAnim

    <ray>.circularMap TextureMap default: undefined -- alias: Circular_Falloff_Map

    <ray>.useCircularMap Boolean default: false -- alias: Apply_Circular_Falloff_Map

    <ray>.radial_size SubAnim

    <ray>.radialSizeMap TextureMap default: undefined -- alias: Radial_Size_Map

    <ray>.useRadialSizeMap Boolean default: false -- alias: Apply_Radial_Size_Map

    <ray>.applyLights Boolean default: true -- alias: Apply_to_Lights

    <ray>.applyImage Boolean default: true -- alias: Apply_to_Image

    <ray>.applyImageCenters Boolean default: false -- alias: Apply_to_Image_Centers

    <ray>.sourceObjectID Boolean default: false -- alias: Source_Object_ID

    <ray>.objectID Integer default: 1 -- animatable; alias: Object_ID

    <ray>.sourceEffectsID Boolean default: false -- alias: Source_Effects_ID

    <ray>.effectsID Integer default: 1 -- animatable; alias: Effects_ID

    <ray>.sourceUnclampedColor Boolean default: false -- alias: Source_Unclamped_Color

    <ray>.unclampedColor Float default: 1.0 -- animatable; alias: Unclamped_Color

    <ray>.unclampedColorInvert Boolean default: false -- alias: Source_Unclamped_Color_Invert

    <ray>.sourceSurfaceNormal Boolean default: false -- alias: Source_Surface_Normal

    <ray>.surfaceNormal Float default: 0.0 -- animatable; alias: Surface_Normal

    <ray>.surfaceNormalInvert Boolean default: false -- alias: Source_Surface_Normal_Invert

    <ray>.sourceWhole Boolean default: false -- alias: Source_Whole

    <ray>.sourceAlpha Boolean default: false -- alias: Source_Alpha

    <ray>.alpha Integer default: 0 -- animatable

    <ray>.sourceZBuffer Boolean default: false -- alias: Source_Z_Buffer

    <ray>.zHi Float default: 1000.0 -- animatable; alias: Z_Hi

    <ray>.zLo Float default: 0.0 -- animatable; alias: Z_Lo

    <ray>.filterAll Boolean default: true -- alias: Filter_All

    <ray>.filterEdge Boolean default: false -- alias: Filter_Edge

    <ray>.filterPerimeterAlpha Boolean default: false -- alias: Filter_Perimeter_Alpha

    <ray>.filterPerimeter Boolean default: false -- alias: Filter_Perimeter

    <ray>.filterBrightness Boolean default: false -- alias: Filter_Brightness

    <ray>.brightness Integer default: 0 -- animatable; alias: Bright

    <ray>.brightnessInvert Boolean default: false -- alias: Filter_Brightness_Invert

    <ray>.filterHue Boolean default: false -- alias: Filter_Hue

    <ray>.hueRange Integer default: 0 -- animatable; alias: Hue_Range

    <ray>.hue Color default: (color 255 0 0) -- animatable

    <ray>.applyNoise Boolean default: false -- alias: Apply_Additional_Effects

    <ray>.noiseMap TextureMap default: undefined -- alias: Noise_Map

    <ray>.radial_density SubAnim

    <ray>.radialDensity TextureMap default: undefined -- alias: Radial_Density_Map

    <ray>.useRadialDensity Boolean default: false -- alias: Apply_Radial_Density_Map

    <ray.radial_falloff>.curve_1 SubAnim

The curve_1 SubAnim contains the radial_falloff curve. You cannot create or access points in this curve unless the point is animated. In this case, you can access the animated point position as a SubAnim of the curve_1 property.

    <ray.circular_falloff>.curve_1 SubAnim

The curve_1 SubAnim contains the circular_falloff curve. You cannot create or access points in this curve unless the point is animated. In this case, you can access the animated point position as a SubAnim of the curve_1 property.

    <ray.radial_size>.curve_1 SubAnim

The curve_1 SubAnim contains the radial_size curve. You cannot create or access points in this curve unless the point is animated. In this case, you can access the animated point position as a SubAnim of the curve_1 property.

    <ray.radial_density>.curve_1 SubAnim

The curve_1 SubAnim contains the radial_density curve. You cannot create or access points in this curve unless the point is animated. In this case, you can access the animated point position as a SubAnim of the curve_1 property.

NoteThe le.addRay <Lens_Effects> method returns true if the addition was successful, false if it failed. Once the element has been added, it can be accessed as a property of the lens_effects value. The name of this property for ray elements is ray . If more than one element of the same type is added, only the first is accessible using the property name. You will need to access the remaining elements as subAnims of the lens_effects value. The subAnim names are the same as the property names. The elements start at subAnim 7.

#### See Also

- Lens_Effects : RenderEffect

- Value Common Properties, Operators, and Methods