User Guide
731
worldTransform
Syntax
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
Syntax
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)