- Image
- Voro
Pointer
Purpose
Section titled “Purpose”Pointer brings a mouse or a touch into a graph. Rig panels and Warp FX tools that respond to clicks read its pointer output, the way a renderer reads a Camera.
Place Pointer under Voro in the Image view and wire pointer to the node that should respond. In TouchDesigner, Pointer’s panel feeds hand.
With nothing on hand, Pointer sends one touch from its own parameters. Set Touch ID to 1, place it with U and V, and pulse Press to click.
When the hand only reports a spot on a picture, wire that picture, a renderer’s image, into view. Pointer then works out the 3D ray from the camera that rendered it.
Inputs and outputs
Section titled “Inputs and outputs”handtakes touches from the host, one row each.viewtakes the rendered image the hand is on. Pointer reads its camera from the previous frame, so a render can loop back here.pointersends one row per touch: U and V, buttons, pressure, the 3D ray and a running count of presses.
Controls
Section titled “Controls”- Touch ID 0 means no touch. 1 and up place one at U and V, with V rising from the bottom.
- Press adds one primary press. Presses is the count it adds to.
- The Ray page sets the ray by hand. Hit Distance stays at -1 when nothing was hit.
A Warp FX tool reads the row with voro.pointer; Warp FX shows how. Act when the press count changes rather than while a button is down, so a click is never missed or repeated.
Inputs
-
handrow -
viewimage
Outputs
-
pointerrow required
Parameters
Section titled “Parameters”Pointer
op('pointer').par.Touchid - Default:
0- Range:
- 0 to 16777215
op('pointer').par.U - Default:
0.5- Range:
- 0 to 1
op('pointer').par.V - Default:
0.5- Range:
- 0 to 1
op('pointer').par.Buttons - Default:
0- Range:
- 0 to 7
op('pointer').par.Pressure - Default:
0- Range:
- 0 to 1
op('pointer').par.Presses - Default:
0- Range:
- 0 to 16777215
op('pointer').par.Press - Default:
None
Ray
op('pointer').par.Originx - Default:
0- Range:
- -100000 to 100000
op('pointer').par.Originy - Default:
0- Range:
- -100000 to 100000
op('pointer').par.Originz - Default:
0- Range:
- -100000 to 100000
op('pointer').par.Directionx - Default:
0- Range:
- -1 to 1
op('pointer').par.Directiony - Default:
0- Range:
- -1 to 1
op('pointer').par.Directionz - Default:
0- Range:
- -1 to 1
op('pointer').par.Hitdistance - Default:
-1- Range:
- -1 to 100000