OpMap
Overview
OpMap is a math utility for compositing two colors or editing a single color.
For simple blending, see BlendMap. For more artist-familiar compositing, see LayerMap.
Attribute Reference
General attributes
clamp
Bool
default: False
Whether to clamp result to 0 - 1
op1
Rgb bindable
default: [ 1, 1, 1 ]
First operand
op1_factor
Float bindable
default: 1.0
Scalar multiplier on op1
op2
Rgb bindable
default: [ 1, 1, 1 ]
Second operand
op2_factor
Float bindable
default: 1.0
Scalar multiplier on op2
operation
Int enum
0 = “add” (default)
1 = “subtract”
2 = “multiply”
3 = “divide”
4 = “maximum”
5 = “minimum”
6 = “power”
7 = “cross”
8 = “dot”
9 = “invert op1”
10 = “normalize op1”
11 = “op1”
12 = “op2”
13 = “overlay”
14 = “screen”
15 = “abs”
16 = “ceil”
17 = “floor”
18 = “modulo”
19 = “fraction”
20 = “length”
21 = “sine”
22 = “cosine”
23 = “round”
24 = “acos”
25 = “less_than”
26 = “less_than_or_equal”
27 = “greater_than”
28 = “greater_than_or_equal”
29 = “equal”
30 = “not equal”
31 = “and”
32 = “or”
33 = “not”
34 = “xor”
35 = “bit_shift_left”
36 = “bit_shift_right”
37 = “bitwise_and”
38 = “bitwise_or”
39 = “vector_equal”
40 = “vector_not_equal”
Operation
tolerance
Float
default: 0.001
Epsilon. Sets range for almost-equals checking of values