Palette:pointWeight

From TouchDesigner Documentation
Jump to: navigation, search

Summary
[edit]

The pointWeight component creates a weight mask based on the XYZ point data stored in the input's RGB channels. The output mask will contain zero to one values for each point based on its position, with ones inside the selection volume and zeroes outside.

The selection volume is determined by the Shape and Transform parameters. The Falloff parameters determine if the volume has a hard edge or fades off gradually.

The output image can be used to control which points are rendered using the Active parameter of the Geometry COMP instance page, or as a weight mask in the second input of the Palette:pointTransform component.

PythonIcon.pngPalette:pointWeight Ext


Parameters - Shape Page

Help Help - Opens this page.  

Version Version - The current version of this component.  

Shape Shape - - The shape of the selection volume.

  • Sphere sphere - Points will be selected inside of a sphere of radius 1.

Transform Order Transformorder - - The order that the transformation parameters (translate, rotate and scale) will be applied to the position of the selection volume.

  • Scale Rotate Translate Scale_Rotate_Translate -
  • Scale Translate Rotate Scale_Translate_Rotate, -
  • Rotate Scale Translate Rotate_Scale_Translate, -
  • Rotate Translate Scale Rotate_Translate_Scale, -
  • Translate Scale Rotate Translate_Scale_Rotate, -
  • Translate Rotate Scale Translate_Rotate_Scale -

Rotate Order Rotateorder - - The order of the axes used to rotate the selection volume.

  • Rx Ry Rz RxRyRz -
  • Rx Rz Ry RxRzRy -
  • Ry Rx Rz RyRxRz -
  • Ry Rz Rx RyRzRx -
  • Rz Rx Ry RzRxRy -
  • Rz Ry Rx RzRyRx -

Translate Translate - - Move the position of the selection volume.

  • Translate Translatex -
  • Translate Translatey -
  • Translate Translatez -

Rotate Rotate - - Rotate the selection volume around the X, Y and Z axes.

  • Rotate Rotatex -
  • Rotate Rotatey -
  • Rotate Rotatez -

Scale Scale - - Squash or stretch the selection volume in the X, Y and Z axes.

  • Scale Scalex -
  • Scale Scaley -
  • Scale Scalez -

Pivot Pivot - - An XYZ position to rotate the selection volume around.

  • Pivot Pivotx -
  • Pivot Pivoty -
  • Pivot Pivotz -

Falloff Falloff - - Determines how points just outside the selection volume are weighted. If the falloff is set to None, points outside the selection volume will all be set to zero. For other falloff types, the weights will fade gradually to zero.

  • None none -
  • Linear lin -
  • Exponential exp -

Falloff Range Scale Falloffrange - Controls the range of the falloff effect. Zero is equivalent to having no falloff. Values greater than zero will stretch the falloff range away from the selection volume. The falloff range is relative to any scale applied to the selection volume, so the falloff will be further along axes that are scaled larger.  


Operator Inputs

  • Input 0 - An input image containing XYZ point data in the RGB channels.


Operator Outputs

  • Output 0 - A single-channel floating point image containing a weight value for each input pixel based on the point's position in space.


Palette
Palette • Palette:arcBallCamera • Palette:arcBallGeometry • Palette:audioAnalysis • Palette:audioSet • Palette:battery • Palette:blendModes • Palette:bloom • Palette:cameraBrowser • Palette:camSchnappr • Palette:changeColor • Palette:changeToColor • Palette:checker • Palette:chromaKey • Palette:colorThreshold • Palette:compareComp • Palette:convolve • Palette:cornerPinSOP • Palette:customAttributes • Experimental:Palette:debugControl • Palette:dent • Palette:depthExtract • Palette:dilate • Palette:equalizer • Palette:feedback • Palette:feedbackEdge • Palette:firmata • Palette:geoPanel • Palette:gestureCapture • Palette:graphPlot • Palette:histogram • Palette:hsvBlur • Palette:imageSearch • Palette:julia • Palette:kantanMapper • Palette:kinectCalibration • Palette:kinectPointcloud • Palette:leapPaint • Palette:lightTunnel • Palette:mandelbrot • Palette:mesh • Palette:monochrome • Palette:motionSense • Palette:moviePlayer • Palette:multiLevel • Palette:multiMix • Palette:noise • Palette:onScreenKeyboard • Palette:opticalFlow • Palette:particlesGpu • Palette:pixelate • Palette:pixelRelocator • Palette:pointGenerator • Palette:pointillize • Palette:pointMerge • Palette:pointRender • Palette:pointRepack • Palette:pointTransform • Palette:pointWeight • Palette:popDialog • Palette:probe • Palette:projectorBlend • Palette:pushPins • Palette:puzzle • Palette:radialBlur • Palette:remotePanel • Palette:rgbaBlur • Palette:rgbaDelay • Palette:rgbContrast • Palette:search • Palette:searchReplace • Palette:sharpen • Palette:softenAlpha • Palette:solarize • Palette:sopRender • Palette:stitcher • Palette:stoner • Palette:superFormula • Palette:sweetSpotPreviz • Palette:TDVR • Palette:transitMap • Palette:twirl • Palette:vectorScope • Palette:virtualFile • Palette:waveformMonitor • Palette:webBrowser • Palette:xyScope

A built-in panel in TouchDesigner that contains a library of components and media that can be dragged-dropped into a TouchDesigner network.