EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 793

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
gravity 793
glossMap
Usage
member(whichCastmember).shader(whichShader).glossMap
member(whichCastmember).model(whichModel).shader.glossMap
member(whichCastmember).model(whichModel).shaderList{[index]}.\
glossMap
Description
3D #standard shader property; specifies the texture to use for gloss mapping.
When you set this property, the following properties are automatically set:
• The fourth texture layer of the shader is set to the texture you specified.
• The value of textureModeList[4] is set to #none.
• The value of blendFunctionList[4] is set to #multiply.
Example
This statement sets the texture named Oval as the glossMap value for the shader used by the
model named GlassBox:
member("3DPlanet").model("GlassBox").shader.glossMap = \
member("3DPlanet").texture("Oval")
See also
blendFunctionList, textureModeList, region, specularLightMap, diffuseLightMap
gravity
Usage
member(whichCastmember).modelResource(whichModelResource).gravity
Description
3D particle model resource property; when used with a model resource whose type is #particle,
allows you to get or set the
gravity property of the resource as a vector.
This property defines the gravity force applied to all particles in each simulation step.
The default value for this property is
vector(0,0,0).
Example
In this example, ThermoSystem is a model resource of the type #particle. This statement sets the
gravity property of ThermoSystem to the vector (0, -.1, 0), which pulls the particles of
thermoSystem gently down the y axis.
member("Fires").modelResource("ThermoSystem").gravity = \
vector(0, -.1, 0)
See also
drag, wind