3D Lingo Dictionary > T-Z > wrapTransformList

 

wrapTransformList

Syntax

member( whichCastmember ).shader( ShaderName ).wrapTransformList[ textureLayerIndex ]
member( whichCastmember ).shader[ shaderListIndex ].wrapTransformList[ textureLayerIndex ]
member( whichCastmember ).model( modelName ).shader.wrapTransformList[ textureLayerIndex ]
member( whichCastmember ).model( modelName ).shaderList[ shaderListIndex ]. wrapTransformList[ textureLayerIndex ]

Description

3D standard shader property; this property provides access to a transform that modifies the texture coordinate mapping of a specified texture layer. Rotate this transform to alter how the texture is projected onto model surfaces. The texture itself remains unaffected; the transform modifies only the orientation of how the shader applies the texture.

Note: wrapTransformList[textureLayerIndex] only has an effect when textureModeList[textureLayerIndex] is set to #planar, #spherical, or #cylindrical.

Example

Line two sets the transformMode of the third texture layer of the shader named "shad2" to #wrapCylindrical. Line three rotates that cylindrical projection by 90 degrees 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.textureModeList[3] = #wrapCylindrical
s.wrapTransformList[3].rotate(90.0, 0.0, 0.0)

See also

newShader, textureModeList