Skip to content

Transform

Control the device position, scale, and rotation.

Usage

json
{
  "settings": {
    "deviceTransform": {
      "scale": 1.2,
      "positionY": 0.1,
      "rotationX": 15,
      "rotationY": -10
    }
  }
}

Properties

PropertyTypeRangeDefaultDescription
scalenumber0.1 - 51.0Device scale multiplier
positionYnumber-2 - 20Vertical position offset
rotationXnumber-180 - 1800X-axis rotation (degrees)
rotationYnumber-180 - 1800Y-axis rotation (degrees)

Examples

Larger Device

json
{
  "settings": {
    "deviceTransform": {
      "scale": 1.5
    }
  }
}

Tilted View

json
{
  "settings": {
    "deviceTransform": {
      "rotationX": 15,
      "rotationY": -20
    }
  }
}

Positioned Lower

json
{
  "settings": {
    "deviceTransform": {
      "positionY": -0.3
    }
  }
}

Combined Transform

json
{
  "settings": {
    "deviceTransform": {
      "scale": 1.2,
      "positionY": 0.1,
      "rotationX": 10,
      "rotationY": -15
    }
  }
}

Shotprose API Documentation