3D Lingo Dictionary > E-K > height |
![]() ![]() ![]() |
height
Syntax
member(whichCastmember
).modelResource(whichModelResource
).height member(whichCastmember
).texture(whichTexture
).height
Description
3D #box
model resource, #cylinder
model resource, and texture property; indicates the height of the object.
The height of a #box
or #cylinder
model resource is measured in world units and can be tested and set. The default value for this property is 50.
The height of a texture is measured in pixels and can be tested but not set. The height of the texture is rounded from the height of the source of the texture to the nearest power of 2.
Examples
This statement sets the height of the model resource named Tower to 225.0 world units.
member("3D World").modelResource("Tower").height = 225.0
This statement shows that the height of the texture named Marsmap is 512 pixels.
put member("scene").texture("Marsmap").height -- 512
See also
![]() ![]() ![]() |