Skip to content

threed

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.


thisLayer.acceptsLights

Returns a value of 1 if the layer accepts lights.

Boolean Number


thisLayer.acceptsShadows

Returns a value of 1 if the layer accepts shadows and 2 if the property is set to Only.

Number


thisLayer.ambient

Returns the ambient component value as a percentage.

Number


thisLayer.castsShadows

Returns a value of 1.0 if the layer casts shadows and 2 if the property is set to Only.

Number


thisLayer.diffuse

Returns the diffuse component value as a percentage.

Number


thisLayer.lightTransmission

Returns the value of the Light Transmission property for a 3D layer.

Number


thisLayer.metal

Returns the metal component value as a percentage.

Number


thisLayer.orientation

Returns the 3D orientation value, in degrees, for a 3D layer.

Array (3-dimensional)


thisLayer.rotationX

Returns the x rotation value, in degrees, for a 3D layer.

Number


thisLayer.rotationY

Returns the y rotation value, in degrees, for a 3D layer.

Number


thisLayer.rotationZ

Returns the z rotation value, in degrees, for a 3D layer.

Number


thisLayer.shininess

Returns the shininess component value as a percentage.

Number


thisLayer.specular

Returns the specular component value as a percentage.

Number