userData 1073
Example
This behavior toggles the formatting of hypertext on and off in text cast member “myText”:
--Lingo syntax
on mouseUp
member("myText").usehypertextStyles = \
not(member("myText").usehypertextStyles)
end
// JavaScript syntax
function mouseUp() {
member("myText").usehypertextStyles =
!(member("myText").usehypertextStyles)
}
useLineOffset
Usage
member(
whichCastmember
).model(
whichModel
).toon.useLineOffset
member(
whichCastmember
).model(
whichModel
).inker.useLineOffset
Description
3D
toon
and
inker
modifier property; indicates whether the modifier’s
lineOffset
property is
used by the modifier when it draws lines on the surface of the model.
The default value of this property is
FALSE
.
Example
The following statement sets the
useLineOffset
property of the
toon
modifier for the model
named Teapot to
FALSE
. The
toon
modifier’s
lineOffset
property will have no effect.
member("tp").model("Teapot").toon.useLineOffset = FALSE
See also
lineOffset
userData
Usage
member(
whichCastmember
).model(
whichModel
).userData
member(
whichCastmember
).light(
whichLight
).userData
member(
whichCastmember
).camera(
whichCamera
).userData
member(
whichCastmember
).group(
whichCamera
).userData
Description
3D property; returns the
userData
property list of a model, group, camera, or light. The default
value of this property for an object that was created outside of Director is a list of all the
properties that were assigned to the model’s
userData
property in the 3D modeling tool. The
default value of this property for objects created inside of Director is an empty property list [:],
unless the object was created using any of the clone commands. If a cloning command was used
to create the object then the new object’s
userData
property defaults to a value equal to that of
the original source object.
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...