Class: OpenUSD::Schema::Camera

Inherits:
Base
  • Object
show all
Defined in:
lib/openusd/schema/camera.rb

Overview

Convenience API for common Camera attributes.

Instance Attribute Summary

Attributes inherited from Base

#prim

Instance Method Summary collapse

Methods inherited from Base

define, get, #initialize, #path, schema_type, #stage

Constructor Details

This class inherits a constructor from OpenUSD::Schema::Base

Instance Method Details

#clipping_rangeArray<Float>?

Returns near and far clipping distances.

Returns:

  • (Array<Float>, nil)

    near and far clipping distances



20
21
22
# File 'lib/openusd/schema/camera.rb', line 20

def clipping_range
  get("clippingRange")
end

#clipping_range=(value) ⇒ Object

Author near and far clipping distances.



25
26
27
# File 'lib/openusd/schema/camera.rb', line 25

def clipping_range=(value)
  set("clippingRange", "float2", value)
end

#focal_lengthFloat?

Returns focal length in tenths of a scene unit.

Returns:

  • (Float, nil)

    focal length in tenths of a scene unit



10
11
12
# File 'lib/openusd/schema/camera.rb', line 10

def focal_length
  get("focalLength")
end

#focal_length=(value) ⇒ Object

Author the focal length.



15
16
17
# File 'lib/openusd/schema/camera.rb', line 15

def focal_length=(value)
  set("focalLength", "float", value)
end