threed
Layer 3D
Section titled “Layer 3D”thisLayer
These attributes are related to the 3d properties of layers.
On this page, we’re going to use thisLayer
as a sample on how to call these items, however note that any method that returns a Layer will work.
Attributes
Section titled “Attributes”Layer.acceptsLights
Section titled “Layer.acceptsLights”thisLayer.acceptsLights
Description
Section titled “Description”Returns a value of 1
if the layer accepts lights.
Boolean Number
Layer.acceptsShadows
Section titled “Layer.acceptsShadows”thisLayer.acceptsShadows
Description
Section titled “Description”Returns a value of 1
if the layer accepts shadows and 2
if the property is set to Only
.
Number
Layer.ambient
Section titled “Layer.ambient”thisLayer.ambient
Description
Section titled “Description”Returns the ambient component value as a percentage.
Number
Layer.castsShadows
Section titled “Layer.castsShadows”thisLayer.castsShadows
Description
Section titled “Description”Returns a value of 1.0
if the layer casts shadows and 2
if the property is set to Only
.
Number
Layer.diffuse
Section titled “Layer.diffuse”thisLayer.diffuse
Description
Section titled “Description”Returns the diffuse component value as a percentage.
Number
Layer.lightTransmission
Section titled “Layer.lightTransmission”thisLayer.lightTransmission
Description
Section titled “Description”Returns the value of the Light Transmission property for a 3D layer.
Number
Layer.metal
Section titled “Layer.metal”thisLayer.metal
Description
Section titled “Description”Returns the metal component value as a percentage.
Number
Layer.orientation
Section titled “Layer.orientation”thisLayer.orientation
Description
Section titled “Description”Returns the 3D orientation value, in degrees, for a 3D layer.
Array (3-dimensional)
Layer.rotationX
Section titled “Layer.rotationX”thisLayer.rotationX
Description
Section titled “Description”Returns the x rotation value, in degrees, for a 3D layer.
Number
Layer.rotationY
Section titled “Layer.rotationY”thisLayer.rotationY
Description
Section titled “Description”Returns the y rotation value, in degrees, for a 3D layer.
Number
Layer.rotationZ
Section titled “Layer.rotationZ”thisLayer.rotationZ
Description
Section titled “Description”Returns the z rotation value, in degrees, for a 3D layer.
Number
Layer.shininess
Section titled “Layer.shininess”thisLayer.shininess
Description
Section titled “Description”Returns the shininess component value as a percentage.
Number
Layer.specular
Section titled “Layer.specular”thisLayer.specular
Description
Section titled “Description”Returns the specular component value as a percentage.
Number