Class: OpenUSD::Schema::Xform
Overview
Convenience API for Xform prims and common transform operations.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#rotate_xyz ⇒ Array<Float>?
XYZ rotation operation.
-
#rotate_xyz=(value) ⇒ Object
Author the XYZ rotation operation.
-
#scale ⇒ Array<Float>?
Scale operation.
-
#scale=(value) ⇒ Object
Author the scale operation.
-
#translate ⇒ Array<Float>?
Translation operation.
-
#translate=(value) ⇒ Object
Author the translation operation.
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_xyz ⇒ Array<Float>?
Returns 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 |
#scale ⇒ Array<Float>?
Returns 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 |
#translate ⇒ Array<Float>?
Returns 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 |