rangeTransform

rangeTransform

filter
rangeTransform
RayTK
v0.42

Applies a transform based on a range of settings, mapped with either the iteration value or a field input.

This operator defines two different sets of transform settings. It then uses some index value to decide where in that range it will use. A simple use case for this would be iteration with 3 items, where the first item moves to one position and the last item moves to another position, and the one in the middle moves to half way between those two.

The index is based either on the first (x) part of the iteration value provided by a downstream op, or if the second input is connected, that float value field is used to determine the index. The index is then scaled from the specified range down to 0..1. The Extend parameter controls how values outside that range are handled.

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Index Range

The range of index values that are expected. The first value will use Translate1 and the second will use Translate2.

Runtime Baked
Extend Mode

How to handle index values outside of Indexrange.

Baked Baked
  • Linear: Linearly scale values, which is like making a graph with a line between the two settings, and then just extending that line in the same direction as it goes past 1 (and before 0).
  • Clamp: Clamp the index values to the range.
  • Loop: Loop the values over the range.
Enable Translate

Wheteher to use translation.

Baked Baked
Translate 1

Translate setting for the beginning of the range.

Runtime Baked
Translate 2

Translate setting for the end of the range.

Runtime Baked
Enable Rotate

Whether to use rotation.

Baked Baked
Rotate 1

Rotate setting for the beginning of the range.

Runtime Baked
Rotate 2

Rotate setting for the end of the range.

Runtime Baked
Use Pivot Baked Baked
Pivot 1 Runtime Baked
Pivot 2 Runtime Baked
Enable Uniform Scale Baked Baked
Uniform Scale 1 Runtime Baked
Uniform Scale 2 Runtime Baked
Enable Scale Baked Baked
Scale 1 Runtime Baked
Scale 2 Runtime Baked

Inputs

  • definition_in: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4 Sdf Volume Ray Light Particle
    • Supports Variables From Inputs: indexField easingFunction
  • Index Field: (optional) Optional float value field to use instead of the iteration value. It is passed the current coordinates.
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
  • Easing: (optional)
    • Coordinate Types: float
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: indexField