Class: OpenUSD::Schema::Xform

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

Overview

Convenience API for Xform prims and common transform operations.

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

#rotate_xyzArray<Float>?

Returns XYZ rotation operation.

Returns:

  • (Array<Float>, nil)

    XYZ rotation operation



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

def rotate_xyz
  get("xformOp:rotateXYZ")
end

#rotate_xyz=(value) ⇒ Object

Author the XYZ rotation operation.



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

def rotate_xyz=(value)
  set_operation("xformOp:rotateXYZ", "float3", value)
end

#scaleArray<Float>?

Returns scale operation.

Returns:

  • (Array<Float>, nil)

    scale operation



30
31
32
# File 'lib/openusd/schema/xform.rb', line 30

def scale
  get("xformOp:scale")
end

#scale=(value) ⇒ Object

Author the scale operation.



35
36
37
# File 'lib/openusd/schema/xform.rb', line 35

def scale=(value)
  set_operation("xformOp:scale", "float3", value)
end

#translateArray<Float>?

Returns translation operation.

Returns:

  • (Array<Float>, nil)

    translation operation



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

def translate
  get("xformOp:translate")
end

#translate=(value) ⇒ Object

Author the translation operation.



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

def translate=(value)
  set_operation("xformOp:translate", "double3", value)
end