DwaSwitchMaterial
Overview
The DwaSwitchMaterial allows you to easily switch between materials in the Dwa* suite, and it supports up to 64 material inputs. The choice attribute is responsible for selecting the material.
mtl0 = DwaSolidDielectricMaterial("mtl0") {
["specular_model"] = 0,
}
mtl1 = DwaRefractiveMaterial("mtl1") {
["specular_model"] = 0,
}
mtl2 = DwaMetalMaterial("mtl2") {
["specular_model"] = 0,
}
switchMtl0 = DwaSwitchMaterial("switchMtl0") {
["choice"] = 0,
["material0"] = mtl0,
["material1"] = mtl1,
["material2"] = mtl2,
}
Attribute Reference
Advanced attributes
fallback_bssrdf
Int enum
0 = “normalized diffusion” (default)
1 = “dipole”
2 = “random walk”
If the two materials disagree on the type of bssrdf, this type will be used instead.
sss_trace_set
TraceSet
default: None
By default, only the geometry associated with this material contributes to subsurface. The DwaSwitchMaterial ignores the sss trace sets of the submaterials. If you want adjacent geometry with different material to contribute as well, specify all those parts here.
General attributes
choice
Int
default: 0
which of the 64 inputs (0 to 63) to use
extra_aovs
Map
default: None
Bind this attribute to a 'ListMap' that contains references to ExtraAovMaps that specify additional outputs that can be assigned to a RenderOutput "light aov" result
invisible_refractive_cryptomatte
Bool
default: False
Indicates whether material should/should not appear in the refractive cryptomatte layers
label
String
default:
label used in material and light aovs
material0
DwaBaseLayerable
default: None
material input option
material1
DwaBaseLayerable
default: None
material input option
material10
DwaBaseLayerable
default: None
material input option
material11
DwaBaseLayerable
default: None
material input option
material12
DwaBaseLayerable
default: None
material input option
material13
DwaBaseLayerable
default: None
material input option
material14
DwaBaseLayerable
default: None
material input option
material15
DwaBaseLayerable
default: None
material input option
material16
DwaBaseLayerable
default: None
material input option
material17
DwaBaseLayerable
default: None
material input option
material18
DwaBaseLayerable
default: None
material input option
material19
DwaBaseLayerable
default: None
material input option
material2
DwaBaseLayerable
default: None
material input option
material20
DwaBaseLayerable
default: None
material input option
material21
DwaBaseLayerable
default: None
material input option
material22
DwaBaseLayerable
default: None
material input option
material23
DwaBaseLayerable
default: None
material input option
material24
DwaBaseLayerable
default: None
material input option
material25
DwaBaseLayerable
default: None
material input option
material26
DwaBaseLayerable
default: None
material input option
material27
DwaBaseLayerable
default: None
material input option
material28
DwaBaseLayerable
default: None
material input option
material29
DwaBaseLayerable
default: None
material input option
material3
DwaBaseLayerable
default: None
material input option
material30
DwaBaseLayerable
default: None
material input option
material31
DwaBaseLayerable
default: None
material input option
material32
DwaBaseLayerable
default: None
material input option
material33
DwaBaseLayerable
default: None
material input option
material34
DwaBaseLayerable
default: None
material input option
material35
DwaBaseLayerable
default: None
material input option
material36
DwaBaseLayerable
default: None
material input option
material37
DwaBaseLayerable
default: None
material input option
material38
DwaBaseLayerable
default: None
material input option
material39
DwaBaseLayerable
default: None
material input option
material4
DwaBaseLayerable
default: None
material input option
material40
DwaBaseLayerable
default: None
material input option
material41
DwaBaseLayerable
default: None
material input option
material42
DwaBaseLayerable
default: None
material input option
material43
DwaBaseLayerable
default: None
material input option
material44
DwaBaseLayerable
default: None
material input option
material45
DwaBaseLayerable
default: None
material input option
material46
DwaBaseLayerable
default: None
material input option
material47
DwaBaseLayerable
default: None
material input option
material48
DwaBaseLayerable
default: None
material input option
material49
DwaBaseLayerable
default: None
material input option
material5
DwaBaseLayerable
default: None
material input option
material50
DwaBaseLayerable
default: None
material input option
material51
DwaBaseLayerable
default: None
material input option
material52
DwaBaseLayerable
default: None
material input option
material53
DwaBaseLayerable
default: None
material input option
material54
DwaBaseLayerable
default: None
material input option
material55
DwaBaseLayerable
default: None
material input option
material56
DwaBaseLayerable
default: None
material input option
material57
DwaBaseLayerable
default: None
material input option
material58
DwaBaseLayerable
default: None
material input option
material59
DwaBaseLayerable
default: None
material input option
material6
DwaBaseLayerable
default: None
material input option
material60
DwaBaseLayerable
default: None
material input option
material61
DwaBaseLayerable
default: None
material input option
material62
DwaBaseLayerable
default: None
material input option
material63
DwaBaseLayerable
default: None
material input option
material7
DwaBaseLayerable
default: None
material input option
material8
DwaBaseLayerable
default: None
material input option
material9
DwaBaseLayerable
default: None
material input option
priority
Int
default: 0
The material's place in an order of precedence for overlapping dielectrics. A value of 0 means the priority should be ignored. Materials with lower numbers (higher priority) "override" materials with higher numbers (lower priority). To enable automatic removal of self-overlapping geometry, a non-zero priority must be set on the geometry's material.