Layer 3D¶
thisLayer
These attributes are related to the 3d properties of layers.
Info
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¶
Layer.acceptsLights¶
thisLayer.acceptsLights
Description¶
Returns a value of 1
if the layer accepts lights.
Type¶
Boolean Number
Layer.acceptsShadows¶
thisLayer.acceptsShadows
Description¶
Returns a value of 1
if the layer accepts shadows and 2
if the property is set to Only
.
Type¶
Number
Layer.ambient¶
thisLayer.ambient
Description¶
Returns the ambient component value as a percentage.
Type¶
Number
Layer.castsShadows¶
thisLayer.castsShadows
Description¶
Returns a value of 1.0
if the layer casts shadows and 2
if the property is set to Only
.
Type¶
Number
Layer.diffuse¶
thisLayer.diffuse
Description¶
Returns the diffuse component value as a percentage.
Type¶
Number
Layer.lightTransmission¶
thisLayer.lightTransmission
Description¶
Returns the value of the Light Transmission property for a 3D layer.
Type¶
Number
Layer.metal¶
thisLayer.metal
Description¶
Returns the metal component value as a percentage.
Type¶
Number
Layer.orientation¶
thisLayer.orientation
Description¶
Returns the 3D orientation value, in degrees, for a 3D layer.
Type¶
Array (3-dimensional)
Layer.rotationX¶
thisLayer.rotationX
Description¶
Returns the x rotation value, in degrees, for a 3D layer.
Type¶
Number
Layer.rotationY¶
thisLayer.rotationY
Description¶
Returns the y rotation value, in degrees, for a 3D layer.
Type¶
Number
Layer.rotationZ¶
thisLayer.rotationZ
Description¶
Returns the z rotation value, in degrees, for a 3D layer.
Type¶
Number
Layer.shininess¶
thisLayer.shininess
Description¶
Returns the shininess component value as a percentage.
Type¶
Number
Layer.specular¶
thisLayer.specular
Description¶
Returns the specular component value as a percentage.
Type¶
Number