Class: OpenUSD::Schema::Material
- Defined in:
- lib/openusd/schema/material.rb
Overview
Convenience API for Material prims.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#bind(geometry_prim) ⇒ Material
Bind this material to another prim.
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
#bind(geometry_prim) ⇒ Material
Bind this material to another prim.
11 12 13 14 |
# File 'lib/openusd/schema/material.rb', line 11 def bind(geometry_prim) geometry_prim.create_relationship("material:binding").set_targets([path]) self end |