Docs Parameters

OpToClipboard

Copy the selected operator's reference to the system clipboard, ready to paste into an expression.

◎ Parameters

Why use it

Referencing another operator in an expression means working out its path from where the expression lives: op('../geo1'), op('base1/null3'), or a parent shortcut. Get one level wrong and the parameter turns red, and the further apart the two operators sit, the easier that is.

OpToClipboard copies a reference to the selected operator with one key. Paste it into any expression and it becomes the correct relative or shortcut path for that spot.

Features

How to use it

  1. Select the operator you want to reference and press Ctrl+Shift+C (Cmd+Shift+C on macOS).
  2. Click into the expression of the parameter that needs it, paste, and keep typing.

The pasted text has an @ after it. TouchDesigner does not tell a tool where you are going to paste, so the final path cannot be written at copy time. The @ marks the spot, and it resolves to the full relative or shortcut path to the copied operator. The mechanism is the same one ExprHotStrings uses. In practice: ignore the @ and keep typing your expression; it resolves in the end.

Copy op to clipboard in quick-launch does the same as the key. If the shortcut gets in the way, change it with Shortcut, or switch the tool off with Active or Toggle OpToClipboard.

Copying a parameter reference

Press the same shortcut while the mouse is over a parameter and you copy a reference to that parameter. Over a single field, such as tx, you get op('geo1')@.par.tx. Over the name of a parameter row with several fields, such as Translate, you get the whole group: op('geo1')@.parGroup.t.

The @ resolves the same way as for an operator, and the .par or .parGroup part stays behind it, so the finished expression reads op('geo1').par.tx (with the path adjusted to wherever the expression lives).

Get it

Tick it on the install page and it installs with the rest of your setup and stays up to date.

Download FNS_OpToClipboard.tox Version 3.2.9, the tool on its own. It works in any project, and this copy never updates itself.

Shortcuts

  • Shift+Ctrl+C

Parameters

Its Registry page comes from FNS_ConfigRegistry.

Custom

ControlType / defaultWhat it does
ActiveActive on / offon Turn OpToClipboard on or off. When on, the copy shortcut puts the selected operator's reference on the clipboard ready to paste into an expression. Off leaves the component installed but idle.
ShortcutShortcut textempty Hotkey that copies the selected operator's reference to the clipboard.