wrapTransform 1095
worldTransform
Usage
member
(whichMember)
.model(
whichModel
).bonesPlayer.bone[
index
].\
worldTransform
Description
3D bonesplayer property; allows you to get the world relative transform of a specific bone, as
opposed to using the
transform
property which returns the bone’s parent relative transform. The
worldTransform
property can only be used with bonesplayer modified models.
Example
This statement stores a bone’s world relative transform in the variable
finalTransform
:
finalTransform =
member("3D").model(“biped”).bonesPlayer.bone[3].worldTransform
See also
bone
,
getWorldTransform()
,
transform (property)
wrapTransform
Usage
member(
whichCastmember
).shader(
ShaderName
).wrapTransform
member(
whichCastmember
).shader[
ShaderIndex
].wrapTransform
member(
whichCastmember
).model[
modelName
].shader.wrapTransform
member(
whichCastmember
).model.shaderlist[
shaderListIndex
].\
wrapTransform
Description
3D standard shader property; this property provides access to a transform that modifies the
texture coordinate mapping for the shader's
texture
. Rotate this transform to alter how the
texture is projected onto a model surface. The texture remains unaffected; the transform modifies
only the orientation of how the shader applies the texture.
Note:
Note: This command only has an effect when the shader's textureModeList is set to is #planar,
#spherical, or #cylindrical.
Example
These statements set the
transformMode
of the shader named "shad2" to
#wrapCylindrical
,
then rotates that cylindrical projection by 90° about the
x
-axis so that the cylindrical mapping
wraps around the
y
-axis instead of the
z
-axis:
s = member("Scene").shader("shad2")
s.textureMode= #wrapCylindrical
s.wrapTransform.rotate(90.0, 0.0, 0.0)
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...