![MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference Download Page 428](http://html1.mh-extra.com/html/macromedia/director-mx-2004-director-scripting/director-mx-2004-director-scripting_reference_3321720428.webp)
428
Chapter 12: Methods
Parameters
newShaderName
Required. Specifies the name of the new shader. The name of the new shader
must be unique in the shader list.
shaderType
Required. A symbol that determines the style in which the shader is applied. Valid
values include the following:
•
#standard
shaders are photorealistic, and have the following properties:
ambient
,
blend
,
blendConstant
,
blendConstantList
,
blendFunction
,
blendFunctionList
,
blendSource
,
blendSourceList
,
diffuse
,
diffuseLightMap
,
emissive
,
flat
,
glossMap
,
ilk
,
name
,
region
,
renderStyle
,
silhouettes
,
specular
,
specularLightMap
,
texture
,
textureMode
,
textureModeList
,
textureRepeat
,
textureRepeatList
,
textureTransform
,
textureTransformList
,
transparent
,
useDiffuseWithTexture
,
wrapTransform
, and
wrapTransformList
.
•
#painter
shaders are smoothed out, have the appearance of a painting, and have the following
properties in addition to all of the
#standard
properties:
colorSteps
,
hilightPercentage
,
hilightStrength
,
name
,
shadowPercentage
,
shadowStrength
, and
style
.
•
#engraver
shaders are lined, have the appearance of an engraving, and have the following
properties in addition to all of the #standard properties:
brightness
,
density
,
name
,
and
rotation
.
•
#newsprint
shaders are in a simulated dot style, have the appearance of a newspaper
reproduction, and have the following properties in addition to all of the #standard properties:
brightness
,
density
, and
name
.
Example
This statement creates a
#painter
shader called newPainter:
newPainter = member("3D World").newShader("newPainter",#painter)
See also
shadowPercentage
newTexture
Usage
member(
whichCastmember
).newTexture(
newTextureName
\
{,
#typeIndicator
,
sourceObjectReference
})
Description
3D command; creates a new texture within the referenced member’s texture palette and returns a
reference to the new texture. The only way cast member textures will work is if you specify the
cast member in the
newTexture
constructor.
Parameters
newTextureName
Required. Specifies the name of the new texture. The name of the new texture
must be unique in the referenced cast member’s texture palette.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...