Lens_Effects : RenderEffect

Lens_Effects - superclass: renderEffect; super-superclass:MAXWrapper - classID: #(1347096675, 1339450746)

Constructor

lens_effects ...

Properties

<Lens_Effects>.size Float default: 100.0 -- animatable

 

<Lens_Effects>.intensity Float default: 100.0 -- animatable

 

<Lens_Effects>.seed Integer default: 1357

 

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

 

<Lens_Effects>.squeeze Float default: 0.0 -- animatable

 

<Lens_Effects>.affectAlpha Boolean default: true -- alias: Affect_Alpha

 

<Lens_Effects>.affectZBuffer Boolean default: false -- alias: Affect_Z_Buffer

 

<Lens_Effects>.distAffectsSize Boolean default: false -- alias: Distance_Affects_Size

 

<Lens_Effects>.distAffectsIntensity Boolean default: false -- alias: Distance_Affects_Intensity

 

<Lens_Effects>.centerAffectsSize Boolean default: false -- alias: Off_Center_Affects_Size

 

<Lens_Effects>.centerAffectsIntensity Boolean default: false -- alias: Off_Center_Affects_Intensity

 

<Lens_Effects>.innerOcclusionRadius Float default: 3.0 -- animatable, alias: Inner_Occlusion_Radius

 

<Lens_Effects>.outerOcclusionRadius Float default: 33.0 -- animatable, alias: Outer_Occlusion_Radius

 

<Lens_Effects>.occlusionAffectsSize Boolean default: true -- alias: Occlusion_Affects_Size

 

<Lens_Effects>.occlusionAffectsIntensity Boolean default: true -- alias: Occlusion_Affects_Intensity

 

<Lens_Effects>.affectByAtmosphere Boolean default: false -- alias: Affect_By_Atmosphere

 

Methods

The following methods add elements to a Lens Effects, load and save a Lens Effects configuration file, add and delete lights, and delete Lens Effects elements.

le.addASec <Lens_Effects>

Adds a Auto Secondary element to the Lens Effect. The element is appended to any elements present. Returns true if the addition was successful, false if it failed.

le.addGlow <Lens_Effects>

Adds a Glow element to the Lens Effect. The element is appended to any elements present. Returns true if the addition was successful, false if it failed.

le.addMSec <Lens_Effects>

Adds a Manual Secondary element to the Lens Effect. The element is appended to any elements present. Returns true if the addition was successful, false if it failed.

le.addRay <Lens_Effects>

Adds a Ray element to the Lens Effect. The element is appended to any elements present. Returns true if the addition was successful, false if it failed.

le.addRing <Lens_Effects>

Adds a Ring element to the Lens Effect. The element is appended to any elements present. Returns true if the addition was successful, false if it failed.

le.addStar <Lens_Effects>

Adds a Star element to the Lens Effect. The element is appended to any elements present. Returns true if the addition was successful, false if it failed.

le.addStreak <Lens_Effects>

Adds a Streak element to the Lens Effect. The element is appended to any elements present. Returns true if the addition was successful, false if it failed.

le.load <Lens_Effects> <filename_string>

le.save <Lens_Effects> <filename_string>

Saves the Lens Effects configuration to the file specified by <filename_string>. Animated parameter values are not saved.

le.numLights <Lens_Effects>

Returns the number of lights in the light list.

le.addLightNode <Lens_Effects> <light_node>

Adds light node to the light list.

le.addLight <Lens_Effects> <light_node_name_string>

Adds the specified light to the Lens Effects Lights dropdown. light_node_name_string is the name of the light as a string, and must match the case of the light’s name. Returns true if the addition was successful, false if it failed. The normal reason for a failure is that the named light is not present in the scene.

le.deleteLight <Lens_Effects> <index_integer>

Deletes the indexed light from the Lens Effects Lights dropdown, where <index_integer> is the index of the light in the Lens Effects Lights dropdown. Returns true if the deletion was successful, false if it failed. The normal reason for a failure is that the indexed light is not present in the dropdown.

le.deleteLightByName <light_node_name_string>

Deletes the named light from the Lens Effects Lights dropdown. light_node_name_string is the name of the light as a string, and must match the case of the light’s name. Returns true if the deletion was successful, false if it failed. The normal reason for a failure is that the named light is not present in the dropdown.

le.lightIndex <Lens_Effects> <light_node_name_string>

Returns the light list index of the named light. Returns -1 if the light’s name is not in the light list.

le.lightName <Lens_Effects> <index>

Returns the node name of the light for the specified light list index. If the index is out of range, a null string will be returned.

le.deleteElement <Lens_Effects> <index_integer>

Deletes the indexed element, where <index_integer> is the index of the element in the Lens Effects composition window. Returns true if the deletion was successful, false if it failed. The normal reason for a failure is that the indexed element does not exist.

le.deleteElementByName <element_name_string>

Deletes the named element. element_name_string is the name of the element as a string, and must match the case of the element’s name. Returns true if the deletion was successful, false if it failed. The normal reason for a failure is that the named element does not exist.

See also

Lens_Effects - Auto_Secondary

Lens_Effects - Glow

Lens_Effects - Manual_Secondary

Lens_Effects - Ray

Lens_Effects - Ring

Lens_Effects - Star

Lens_Effects - Streak

Render Effects Common Properties, Operators, and Methods

MAXWrapper Common Properties, Operators, and Methods

Value Common Properties, Operators, and Methods