3D Lingo Dictionary > L-N > modelResource |
![]() ![]() ![]() |
modelResource
Syntax
member(whichCastmember
).modelResource(whichModelResource
) member(whichCastmember
).modelResource[index
] member(whichCastmember
).modelResource.count member(whichCastmember
).modelResource(whichModelResource
).propertyName member(whichCastmember
).modelResource[index
].propertyName
Description
3D command; returns the model resource found within the referenced cast member that has the name specified by whichModelResource
, or is found at the index position specified by the index
parameter. If no model resource exists for the specified parameter, the command returns void
. As modelResource.count
, the command returns the number of model resources found within the referenced cast member. This command also allows access to the specified model resource's properties.
Model resource name string comparisons are not case-sensitive. The index position of a particular model resource may change when objects at lower index positions are deleted.
Examples
This statement stores a reference to the model resource named HouseA in the variable thismodelResource
.
thismodelResource = member("3DWorld").modelResource("HouseA")
This statement stores a reference to the fourteenth model resource of the cast member named 3DWorld in the variable thismodelResource
.
thismodelResource = member("3DWorld").modelResource[14]
This statement shows that there are ten model resources in the member of sprite 1.
put sprite(1).member.modelResource.count --10
![]() ![]() ![]() |