Lens Scripting API

    Enumeration DeviceProperty

    Used in Camera's devicePropertyUsage property. Specifies which camera properties should be overridden by device properties.

    // @input Component.Camera camera

    script.camera.devicePropertyUsage = Camera.DeviceProperty.None;

    script.camera.fov = Math.PI * 0.25;
    script.camera.aspect = 1.0;
    Index

    Enumeration Members

    Enumeration Members

    All: number

    Overrides both aspect and fov with the device's properties.

    Aspect: number

    Overrides the Camera's aspect property to use the device's aspect ratio instead.

    Fov: number

    Overrides the Camera's fov property to use the device's field of view instead.

    None: number

    No Camera properties are overridden with device properties.

    MMNEPVFCICPMFPCPTTAAATR