User Guide
1060 Chapter 14: Properties
transparent
Usage
member(whichCastmember).shader(whichShader).transparent
member(whichCastmember).model(whichModel).shader.transparent
member(whichCastmember).model(whichModel).shaderList\
[shaderListIndex].transparent
Description
3D standard shader property; lets you get or set whether a model is blended using alpha
values
(TRUE) or is rendered as opaque (FALSE). The default value for this property is TRUE
(alpha-blended).
The functionality of
shader.blend is dependent upon this property.
All shaders have access to the
#standard shader properties; in addition to these standard shader
properties shaders of the types
#engraver, #newsprint, and #painter have properties unique to
their type. For more information, see the
newShader.
Example
The following statement causes the model Pluto to be rendered opaque. The setting of the blend
property for the model’s shader will have no effect.
member("scene").model("Pluto").shader.transparent = FALSE
See also
blendFactor, blend (3D)
triggerCallback
Usage
-- Lingo syntax
spriteObjRef.triggerCallback
// JavaScript syntax
spriteObjRef.triggerCallback;
Description
QuickTime VR sprite property; contains the name of the handler that runs when the user clicks a
hotspot in a QuickTime VR movie. The handler is sent two arguments: the
me parameter and the
ID of the hotspot that the user clicked.
The value that the handler returns determines how the movie processes the hotspot. If the handler
returns
#continue, the QuickTime VR sprite continues to process the hotspot normally. If the
handler returns #cancel, the default behavior for the hotspot is canceled.
Set this property to 0 to clear the callback.
The QuickTime VR sprite receives the message first.
To avoid a decrease in performance, set the
triggerCallback property only when necessary.
This property can be tested and set.