Class: OpenUSD::Schema::Material

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

Overview

Convenience API for Material prims.

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

#bind(geometry_prim) ⇒ Material

Bind this material to another prim.

Returns:



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