3D Lingo Dictionary > L-N > member |  |

member

Syntax

    member(whichCastmember).texture(whichTexture).member
    member(whichCastmember).model(whichModel).shader.texture.member
    member(whichCastmember).model(whichModel).shaderList[shaderListIndex].textureList[textureListIndex].member

Description

3D texture property; if the texture's type is `#fromCastMember`, this property indicates the cast member that is used as the source for a texture.

This property can be tested and set.

If the texture's type is `#importedFromFile`, this property value is void and cannot be set. If the texture's type is `#fromImageObject`, this property value is `void`, but it can be set.

Example

This Lingo adds a new texture. The second statement shows that the cast member used to create the texture named gbTexture was member 16 of cast 1.

    member("scene").newTexture("gbTexture", #fromCastmember, member(16, 1))
    put member("scene").texture("gbTexture").member
    -- (member 16 of castLib 1)