Close

Experimental:ReRange POP

Summary

The ReRange POP takes any attribute of its input, re-ranges its values, and outputs them to the same attribute, any other existing attribute or a new attribute. It operates on either point, vertex or primitive attributes.

It takes each value of the specified attribute and applies a From range - To range conversion.

If you set Parameter Size to 3 and your attribute is a float3 like P, then for each component of P you can have separate re-range parameters for each attribute component.

The attributes you specify can be any type, including float2, float3, float4, double, etc. You can cause the output parameter to be converted to integers.

When creating a new attribute, you simply put the new attribute name in Output Attribute Scope. The ReRange POP will determine what data type it will be, but you can override it with the >>> expansion parameters.

For Input Attribute Scope you can specify a subset of the components, like P(1) P(0) (same as P.yx swizzle notation) which has the effect of re-ordering Y and X.

PythonIcon.pngrerangePOP_Class


Parameters - ReRange Page

Attribute Class attrclass - -
  • Point point -
  • Vertex vertex -
  • Primitive primitive -

Group group -

Input Attribute Scope inputattrscope -

Parameter Size parsize - -
  • 1 1 -
  • 2 2 -
  • 3 3 -
  • 4 4 -

Map from Low fromlow -

Map from High fromhigh -

Map to Low tolow -

Map to High tohigh -

Cast to castto - -
  • Automatic auto -
  • Float float -
  • Int int -

Output Attribute Scope outputattrscope - -
  • P P -
  • N N -
  • Color Color -
  • Color.i012 Color.i012 -
  • Tex Tex -
  • PointScale PointScale -
  • LineWidth LineWidth -


Override Automatic Attribute overrideautoattr -

New Attribute Type newattrtype - -
  • float float -
  • double double -
  • int int -
  • uint uint -
  • dir dir -
  • dbl dir ddir -

New Attribute Number of Components attrnumcomps - -
  • 1 1 -
  • 2 2 -
  • 3 3 -
  • 4 4 -

New Attribute Default Value newattrdefaultval - -
  • New Attribute Default Value newattrdefaultval1 -
  • New Attribute Default Value newattrdefaultval2 -
  • New Attribute Default Value newattrdefaultval3 -
  • New Attribute Default Value newattrdefaultval4 -


Parameters - Common Page

Bypass bypass -

Delete Input Attributes delinputattrs -


Operator Inputs

  • Input 0: -


Info CHOP Channels

Extra Information for the ReRange POP can be accessed via an Info CHOP.

Common POP Info Channels

Common Operator Info Channels

  • total_cooks - Number of times the operator has cooked since the process started.
  • cook_time - Duration of the last cook in milliseconds.
  • cook_frame - Frame number when this operator was last cooked relative to the component timeline.
  • cook_abs_frame - Frame number when this operator was last cooked relative to the absolute time.
  • cook_start_time - Time in milliseconds at which the operator started cooking in the frame it was cooked.
  • cook_end_time - Time in milliseconds at which the operator finished cooking in the frame it was cooked.
  • cooked_this_frame - 1 if operator was cooked this frame.
  • warnings - Number of warnings in this operator if any.
  • errors - Number of errors in this operator if any.


TouchDesigner Build: