CompositorNodeMath(CompositorNode)¶
base classes — bpy_struct
, Node
, NodeInternal
, CompositorNode
-
class
bpy.types.
CompositorNodeMath
(CompositorNode)¶ -
operation
¶ ADD
Add, A + B.SUBTRACT
Subtract, A - B.MULTIPLY
Multiply, A * B.DIVIDE
Divide, A / B.POWER
Power, A power B.LOGARITHM
Logarithm, Logarithm A base B.SQRT
Square Root, Square root of A.ABSOLUTE
Absolute, Magnitude of A.MINIMUM
Minimum, The minimum from A and B.MAXIMUM
Maximum, The maximum from A and B.LESS_THAN
Less Than, 1 if A < B else 0.GREATER_THAN
Greater Than, 1 if A > B else 0.ROUND
Round, Round A to the nearest integer. Round upward if the fraction part is 0.5.FLOOR
Floor, The largest integer smaller than or equal A.CEIL
Ceil, The smallest integer greater than or equal A.FRACT
Fraction, The fraction part of A.MODULO
Modulo, A mod B.SINE
Sine, sin(A).COSINE
Cosine, cos(A).TANGENT
Tangent, tan(A).ARCSINE
Arcsine, arcsin(A).ARCCOSINE
Arccosine, arccos(A).ARCTANGENT
Arctangent, arctan(A).ARCTAN2
Arctan2, The signed angle arctan(A / B).
Type: enum in [‘ADD’, ‘SUBTRACT’, ‘MULTIPLY’, ‘DIVIDE’, ‘POWER’, ‘LOGARITHM’, ‘SQRT’, ‘ABSOLUTE’, ‘MINIMUM’, ‘MAXIMUM’, ‘LESS_THAN’, ‘GREATER_THAN’, ‘ROUND’, ‘FLOOR’, ‘CEIL’, ‘FRACT’, ‘MODULO’, ‘SINE’, ‘COSINE’, ‘TANGENT’, ‘ARCSINE’, ‘ARCCOSINE’, ‘ARCTANGENT’, ‘ARCTAN2’], default ‘ADD’
-
use_clamp
¶ Clamp result of the node to 0..1 range
Type: boolean, default False
-
classmethod
is_registered_node_type
()¶ True if a registered node type
Returns: Result Return type: boolean
-
classmethod
input_template
(index)¶ Input socket template
Parameters: index (int in [0, inf]) – Index Returns: result Return type: NodeInternalSocketTemplate
-
classmethod
output_template
(index)¶ Output socket template
Parameters: index (int in [0, inf]) – Index Returns: result Return type: NodeInternalSocketTemplate
-
update
()¶
-
classmethod
bl_rna_get_subclass
(id, default=None)¶ Parameters: id (string) – The RNA type identifier. Returns: The RNA type or default when not found. Return type: bpy.types.Struct
subclass
-
classmethod
bl_rna_get_subclass_py
(id, default=None)¶ Parameters: id (string) – The RNA type identifier. Returns: The class or default when not found. Return type: type
-
Inherited Properties
Inherited Functions